From patchwork Thu Apr 2 16:29:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 38708 Return-Path: X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from esa4.hgst.iphmx.com (esa4.hgst.iphmx.com [216.71.154.42]) by sourceware.org (Postfix) with ESMTPS id B95BF388A031 for ; Thu, 2 Apr 2020 16:37:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B95BF388A031 IronPort-SDR: +QbsxSKePkJ/KXkNqvJ0S5tBGXUlGZC8OS0G67mxxjTTMkSrrO1Z/LoO0v+9bFI8YjFyYO+y2s HggPeZAGuNNjGy2ALWTmGSlV/eizmf1wK+8+xt7iBAWd3fPlyFRXnTyMaKAScs1RFzIkycDJlf UnQottygnAuFFx6q/ocKXeKb1Jr01f9nr+gJsyiFbW1Xi1Bb+KOCPfur09Hp8IBYA6ZjrY/nr6 Lmk6UNDce02bkE1Bm3qVoRv8y0PzHCaqFO/K0AViYk64Hi7Nw4NHSssQZvsqhRz9r1jUPvX6nn ohg= X-IronPort-AV: E=Sophos;i="5.72,336,1580745600"; d="scan'208";a="134426320" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 03 Apr 2020 00:37:26 +0800 IronPort-SDR: p2SylubwtcmmQv6OGpkzENIW1hflQ00EI9m22Z0osHXlAr/QIqprGh4jg7+yfwikomiChxQpCn /+qtE7qLjhZL6A7KsPI5z1ktGHPlzLL/BUkyQUN3sy6PmJps94a3crEB4m6vG3GbFlKTlIIXo4 6pu+Wj95E0i6uwbG23AMlaxUY9lKiMJTo4bqMPmzWNS5Qdc2AndmJGqA0lLzg5h83H4ryzaB8j OyCcW9IAO4Q8MnUnVZ98ddLjMMUd175sMpgsTkqVwjEIa0s0KLeztNki6FVC4QTOaAjaUWjeKd Jke1vEI3Yvph7yFMOc8cH7yk Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2020 09:28:17 -0700 IronPort-SDR: GOBCde2GAHVwehiHb1ddnqeRAzySiAPRfqtOGtHz8gfwsQJpil9DEcwSmGLBl2naR1t9LeuQDA J3QEXLJhC/IyAK7wD8paNUHTaaDqSeuP9POygXf83qTTd+kjL+Y1xUlCn13+Cl8aTwUex/F7C1 HVtH/HJppCjvcjWp0n790Yu4V009wLxSTBM3dwwT7UQ/aq39vieE2t5HCsUeJX/RoGhAp/MgYE HzlwRzdK4lSWHyqgtJOxx//sXExowr81r4FXPNEzQLVf6uxBCxCK3C92asjut4KboC1Csnrv3a yO0= WDCIronportException: Internal Received: from phd004806.ad.shared (HELO risc6-mainframe.hgst.com) ([10.86.55.43]) by uls-op-cesaip02.wdc.com with ESMTP; 02 Apr 2020 09:37:25 -0700 From: Alistair Francis To: libc-alpha@sourceware.org Cc: alistair23@gmail.com, Alistair Francis Subject: [PATCH 02/18] RISC-V: Define __NR_* as __NR_*_time64/64 for 32-bit Date: Thu, 2 Apr 2020 09:29:32 -0700 Message-Id: <20200402162939.358617-3-alistair.francis@wdc.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200402162939.358617-1-alistair.francis@wdc.com> References: <20200402162939.358617-1-alistair.francis@wdc.com> MIME-Version: 1.0 X-Spam-Status: No, score=-26.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Apr 2020 16:37:31 -0000 --- sysdeps/unix/sysv/linux/riscv/sysdep.h | 61 ++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/sysdeps/unix/sysv/linux/riscv/sysdep.h b/sysdeps/unix/sysv/linux/riscv/sysdep.h index 83e4adf6a2..aa61e8b04d 100644 --- a/sysdeps/unix/sysv/linux/riscv/sysdep.h +++ b/sysdeps/unix/sysv/linux/riscv/sysdep.h @@ -116,6 +116,67 @@ #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_clock_getres +# define __NR_clock_getres __NR_clock_getres_time64 +# 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