From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa4.hgst.iphmx.com (esa4.hgst.iphmx.com [216.71.154.42]) by sourceware.org (Postfix) with ESMTPS id B6804385701F for ; Sun, 12 Jul 2020 15:57:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B6804385701F IronPort-SDR: bGfgJo/zq3PuSX/bFRrzXmRCWpy8MrYUJPSFKxRKqiZrYAsyFgstItClehUMgH1EqzjLQGbhJi QRt16vIfe2B8YtxD/kDboKjz3usVCoILRYozzOhRKFkM1AezKy3wF5ZWaCKUXzWlXML8A0Yv/f mBhxbkXIMt7s4rg5K9geHXhtbXvd5FRU6LsAZlPluzxbuH0IUESPHu9saKkn3NCzgwUDeMzyx/ BaUB/YJ0RWH+gspE7s+otNZn0otdekYbqhs3SKQG97BpcfNrEhQwj0MDqAHEEEFigu43yVHUkv Ae0= X-IronPort-AV: E=Sophos;i="5.75,344,1589212800"; d="scan'208";a="142250027" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 12 Jul 2020 23:57:01 +0800 IronPort-SDR: EBvKly6h6WrLvLVpLsVMnIb44bIOKUH50oC+L+xH9rdQWe/IGd3DMXJVhmVGfxBMFYJ48DbZwT JMLQR19TuS8V/eESMfCPD2KgtgBPMm7h4= Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jul 2020 08:44:59 -0700 IronPort-SDR: C+smiBr2V8oceuq/x4BX/kocPE9wzBq7KxujGjnHN3GJxedPsvGro6LS2uHh80vDHfiQvqx0/O M8Ohs0pvC/yg== WDCIronportException: Internal Received: from usa002626.ad.shared (HELO risc6-mainframe.hgst.com) ([10.86.57.178]) by uls-op-cesaip01.wdc.com with ESMTP; 12 Jul 2020 08:57:03 -0700 From: Alistair Francis To: libc-alpha@sourceware.org Cc: alistair.francis@wdc.com, alistair23@gmail.com Subject: [PATCH v3 04/19] RISC-V: Add support for 32-bit vDSO calls Date: Sun, 12 Jul 2020 08:47:31 -0700 Message-Id: <50619acf4344de8022a28f34cd04c36eff6873ae.1594568655.git.alistair.francis@wdc.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-15.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, 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: Sun, 12 Jul 2020 15:57:04 -0000 --- sysdeps/unix/sysv/linux/riscv/sysdep.h | 27 ++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/sysdeps/unix/sysv/linux/riscv/sysdep.h b/sysdeps/unix/sysv/linux/riscv/sysdep.h index 62a9551f50..bf26379479 100644 --- a/sysdeps/unix/sysv/linux/riscv/sysdep.h +++ b/sysdeps/unix/sysv/linux/riscv/sysdep.h @@ -136,14 +136,25 @@ #else -# define VDSO_NAME "LINUX_4.15" -# define VDSO_HASH 182943605 - -/* List of system calls which are supported as vsyscalls. */ -# define HAVE_CLOCK_GETRES64_VSYSCALL "__vdso_clock_getres" -# define HAVE_CLOCK_GETTIME64_VSYSCALL "__vdso_clock_gettime" -# define HAVE_GETTIMEOFDAY_VSYSCALL "__vdso_gettimeofday" -# define HAVE_GETCPU_VSYSCALL "__vdso_getcpu" +# if __WORDSIZE == 64 +# define VDSO_NAME "LINUX_4.15" +# define VDSO_HASH 182943605 + +/* List of system calls which are supported as vsyscalls only + for RV64. */ +# define HAVE_CLOCK_GETRES64_VSYSCALL "__vdso_clock_getres" +# define HAVE_CLOCK_GETTIME64_VSYSCALL "__vdso_clock_gettime" +# define HAVE_GETTIMEOFDAY_VSYSCALL "__vdso_gettimeofday" +# else +# define VDSO_NAME "LINUX_5.4" +# define VDSO_HASH 61765876 + +/* RV32 does not support the gettime VDSO syscalls. */ +# endif + +/* List of system calls which are supported as vsyscalls (for RV32 and + RV64). */ +# define HAVE_GETCPU_VSYSCALL "__vdso_getcpu" # define INTERNAL_SYSCALL(name, nr, args...) \ internal_syscall##nr (SYS_ify (name), args) -- 2.27.0