]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
RISC-V: Add support for 32-bit vDSO calls
authorAlistair Francis <alistair.francis@wdc.com>
Wed, 18 Sep 2019 15:41:59 +0000 (08:41 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Sun, 26 Apr 2020 02:16:11 +0000 (19:16 -0700)
sysdeps/unix/sysv/linux/riscv/sysdep.h

index aa61e8b04d94c5d02e9cbdbc0eccba4b9cd50ba5..9f6ed2001b78f5d2c2eed93e13c572c911a07273 100644 (file)
 
 #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)