From patchwork Sun Jan 12 10:33:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 37316 Received: (qmail 11035 invoked by alias); 12 Jan 2020 10:40:22 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 10927 invoked by uid 89); 12 Jan 2020 10:40:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: esa6.hgst.iphmx.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1578825620; x=1610361620; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=g0DQd6YHNNIx1EeOr29sJq6rDMZCCLCdgVzxBxLA4wU=; b=pufPezyZSxzB868Op4Lne7Vbf/LS6zxwsHHX47N+oB9vR7hpPjR2wFJr h3PYjb+7DO9ARdpuZlheBC4Nvraf2RCrlS9MH7hyAyymVr1sesndC8M2n 9T953UpSnr4CGNBzl5zGtQl/9688hhS+ta9PAVHw66lxKOKvJ+IubteFR yoEj1Uk2cEKdTzESX0S6Ie4ImFhgY2vO9qIfChB1LrSwh02XdGYoJbeJn oR10qqEk9jjtDb7ClaWhIAmlJdEIBes8oVp8vxfnhk+KMDychKTlzUAZS KGQ0fFyTgCoTPhtqHh+xz/653OE36MfXvMJhfV1ou5mQFMWig5rq4Ktth w==; IronPort-SDR: D907W15nmUlGbuDFBuXUYHKyEj04VdIi/IxpNvH6JavAlhtzzaze7hbrgT2YFhKtWVuUrG+vIy YBwe1afOsSfHT0QjHOOMZC9mnjBj1Cs4Laf5Duvx5+eVTld/ulnRYo22dKOMpTK2s8oa7U5O3o gMC0DO1zVW7Tcf/Gcb4/+UiMnTZuGuWLVEZpgeS1k3SdZoOBWD6MyUIm2FJw6zVPZIeIjXVbGv ekhifrFoS3pP4LHn+4nJO62ZApao8pL2vgKRWCjMaB3hDHnctbcd6zBv6BSHw5hxgaR01GHZ0X zCU= IronPort-SDR: BUewa7F60cz1rFnMBXKSoirlmnfZVQZTDsdf63csgFhyck6Ex175lCdWks60dSKx3I6jA2kU3A 5k6UoidA3i0fGJQyCHP+J7MqlEsC0jeUHiPmOMexkVXeTKDN2x+eZUQkAQoX/zXTlIRbrDb629 6TpbcrAACbvBOnay8a3TBnYnzjgGXJExFJv4S7pX2nrHweTpGTV4/sTB6NhuZjYf6ukRKhiwc/ N0nDHgYTDrtuaxM4lz9AmfwNzDuJBMQAQZdeojeRZlsT42Yt2sBSbsH/KbPSKW5MclQbBy05/T WUtFHoBVsjkiofrQZRPdmxmH IronPort-SDR: XzvAOb6brUYsD+w0gaLzsMFxkNQFKvGYtnIYlL57s4izAklomL3GPdaEhw7dQhyPZZ0GvBeXbo WyF0R2QqNnCiKcS+DAp7MyL6GCqL6yanUdVlF6Z4D8JMMsG5LNrbMKG9tWBd0fINYhUDmh21sn 6nuGf1+kUtyRtCLJonxDwBk1yvL/GFPn74C3qmtkxohH5Bcsz89hePEfT+NHg+0Taw3isu4NPO e4QexOvG4bm1o3FQ6vAJFhRxCjYqDodJ4TPYQgEPkD6iZtKR4oqVyK2MFiP4zRRl5zm1SE2LGZ jhw= WDCIronportException: Internal From: Alistair Francis To: libc-alpha@sourceware.org Cc: arnd@arndb.de, adhemerval.zanella@linaro.org, fweimer@redhat.com, joseph@codesourcery.com, palmerdabbelt@google.com, macro@wdc.com, zongbox@gmail.com, alistair.francis@wdc.com, alistair23@gmail.com Subject: [RFC v6 08/23] RISC-V: Define __NR_* as __NR_*_time64/64 for 32-bit Date: Sun, 12 Jan 2020 02:33:52 -0800 Message-Id: In-Reply-To: References: MIME-Version: 1.0 --- sysdeps/unix/sysv/linux/riscv/sysdep.h | 73 ++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/sysdeps/unix/sysv/linux/riscv/sysdep.h b/sysdeps/unix/sysv/linux/riscv/sysdep.h index 201bf9a91b..d030bf0db0 100644 --- a/sysdeps/unix/sysv/linux/riscv/sysdep.h +++ b/sysdeps/unix/sysv/linux/riscv/sysdep.h @@ -116,6 +116,79 @@ #include +#if __riscv_xlen == 32 +/* Define the __NR_futex as __NR_futex64 as RV32 doesn't have a + * __NR_futex syscall. + */ +# ifndef __NR_futex +# define __NR_futex __NR_futex_time64 +# endif + +# ifndef __NR_rt_sigtimedwait +# define __NR_rt_sigtimedwait __NR_rt_sigtimedwait_time64 +# endif + +# ifndef __NR_ppoll +# define __NR_ppoll __NR_ppoll_time64 +# endif + +# ifndef __NR_utimensat +# define __NR_utimensat __NR_utimensat_time64 +# endif + +# ifndef __NR_pselect6 +# define __NR_pselect6 __NR_pselect6_time64 +# endif + +# ifndef __NR_recvmmsg +# define __NR_recvmmsg __NR_recvmmsg_time64 +# endif + +# ifndef __NR_semtimedop +# define __NR_semtimedop __NR_semtimedop_time64 +# endif + +# ifndef __NR_mq_timedreceive +# define __NR_mq_timedreceive __NR_mq_timedreceive_time64 +# endif + +# ifndef __NR_mq_timedsend +# define __NR_mq_timedsend __NR_mq_timedsend_time64 +# endif + +# ifndef __NR_timer_gettime +# define __NR_timer_gettime __NR_timer_gettime64 +# endif + +# ifndef __NR_timer_settime +# define __NR_timer_settime __NR_timer_settime64 +# endif + +# ifndef __NR_clock_getres +# define __NR_clock_getres __NR_clock_getres_time64 +# endif + +# ifndef __NR_clock_gettime +# define __NR_clock_gettime __NR_clock_gettime64 +# endif + +# ifndef __NR_timerfd_settime +# define __NR_timerfd_settime __NR_timerfd_settime64 +# endif + +# ifndef __NR_timerfd_gettime +# define __NR_timerfd_gettime __NR_timerfd_gettime64 +# endif + +# ifndef __NR_sched_rr_get_interval +# define __NR_sched_rr_get_interval __NR_sched_rr_get_interval_time64 +# endif + +# ifndef __NR_clock_adjtime +# define __NR_clock_adjtime __NR_clock_adjtime64 +# endif +#endif /* __riscv_xlen == 32 */ + #undef SYS_ify #define SYS_ify(syscall_name) __NR_##syscall_name