]> 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>
Thu, 16 Jan 2020 22:10:36 +0000 (14:10 -0800)
sysdeps/unix/sysv/linux/riscv/sysdep.h

index 094a677d671dc03ac5dee033b6dc9075a5dee347..67e8b803e8fb58cffc0e1fd518e56d2b4cd4bdef 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 a macro which expands into the inline wrapper code for a system
    call.  */