From patchwork Thu Apr 2 16:29:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 38709 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 48CE4388A039 for ; Thu, 2 Apr 2020 16:37:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 48CE4388A039 IronPort-SDR: g+z/0os/aPY8s8Z2H9iA4NimNTWEwH9V80kz++nd4ubOFl+btje0MIyRyuU8xwoorvfjIuK7Ok GoPU7KedTgPMay+ENM7IncqFpaJ9HY4k9KuWkZofOte14uYt0Emg7QAIkd39f6GDOzmfcUobyP dG5h2U8mm8QzXGTFaEcYmxgmOw+4wLiRbQBpT1fYA8HgfftC31y5/9c6bH8NDh1DsNmEfyg289 lECndbNcYM2VSaDYyw4FIuZ6LAjuSrciotRvWDTWkmsgzOy1SUnv26CCWN0goWahj0Gawdc9Jh q5s= X-IronPort-AV: E=Sophos;i="5.72,336,1580745600"; d="scan'208";a="134426324" 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: YzAriioXw0vQGOYq3G5a3oMF7hOcrntD2/XiultpMNj4to5uo9Yo2pOlxgblxp2HQsyvrAsz4A gQhZZno3vGHFACJ/YhDxIRzYH45MYN8fwPraHccG24tWSEHUWy58docd87w8O1tgP8c3/OlRdC 70+AFF3ItAQ4+8l1As3b4ZYwwR9w1t90P9ux0n5piRCfr/bky6p2s6VTiTgml3/VWNZRsFZE6Q EkCagpgAeZLc/LDa54ZaMjScEyc0NelCtdKQ2VCQ1HrZ64N2L+FkKn8czOp1J2FyC9pTNorSsg xsYa0fn/f1tdkbD3FSRAeSQl 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: tZGMMtpFQ1eWKy4LcGvL1zQLr+SS8TPkhirDDHTXLvDWATmQ6p1YX8IcRcIsAma8tQQk4H8aYt 3neVNs/MTIwtYSmwqGsXULMHQaK7UbnLczeK/8ehT0UQvwqWS5Mtj+Lgoh0YR9G/ZZrO0WLjer TwmTS6Z2FlfMcQA9s6Mb23Hf2XX+w4ar/ldlMFPtm0MBkR9uO5pM6mjEm4nltmPRB4p1a8hVKJ GENeptqhVTsIBoxmjagAwY+yAO8NS7sk8A/axwkHTz2wgx6kko3Toc1L1dCiLUoRsjtH/rSAbO nOA= 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 03/18] RISC-V: Add support for 32-bit vDSO calls Date: Thu, 2 Apr 2020 09:29:33 -0700 Message-Id: <20200402162939.358617-4-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.2 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:32 -0000 --- sysdeps/unix/sysv/linux/riscv/sysdep.h | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/sysdeps/unix/sysv/linux/riscv/sysdep.h b/sysdeps/unix/sysv/linux/riscv/sysdep.h index aa61e8b04d..9f6ed2001b 100644 --- a/sysdeps/unix/sysv/linux/riscv/sysdep.h +++ b/sysdeps/unix/sysv/linux/riscv/sysdep.h @@ -182,14 +182,21 @@ #ifndef __ASSEMBLER__ -# define VDSO_NAME "LINUX_4.15" -# define VDSO_HASH 182943605 +# if __riscv_xlen == 32 +# define VDSO_NAME "LINUX_5.4" +# define VDSO_HASH 61765876 /* 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" +# 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" +# endif # define INTERNAL_SYSCALL(name, nr, args...) \ internal_syscall##nr (SYS_ify (name), args)