diff options
author | John David Anglin <danglin@gcc.gnu.org> | 2024-06-23 19:39:28 -0400 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2024-06-23 19:39:28 -0400 |
commit | aecde502e9bb20a30b0f111b5a690af1746b78ef (patch) | |
tree | e94352c52c2e9682a8ea0b79f67a76ff110a63e3 /sysdeps/unix/sysv | |
parent | 9dddb2695443afea3cdb7f3856f23b6d045311fc (diff) | |
download | glibc-aecde502e9bb20a30b0f111b5a690af1746b78ef.tar.gz glibc-aecde502e9bb20a30b0f111b5a690af1746b78ef.tar.xz glibc-aecde502e9bb20a30b0f111b5a690af1746b78ef.zip |
hppa/vdso: Add wrappers for vDSO functions
The upcoming parisc (hppa) v6.11 Linux kernel will include vDSO support for gettimeofday(), clock_gettime() and clock_gettime64() syscalls for 32- and 64-bit userspace. The patch below adds the necessary glue code for glibc. Signed-off-by: Helge Deller <deller@gmx.de> Changes in v2: - add vsyscalls for 64-bit too
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r-- | sysdeps/unix/sysv/linux/hppa/sysdep.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/hppa/sysdep.h b/sysdeps/unix/sysv/linux/hppa/sysdep.h index ee82fbd364..af62f7501e 100644 --- a/sysdeps/unix/sysv/linux/hppa/sysdep.h +++ b/sysdeps/unix/sysv/linux/hppa/sysdep.h @@ -468,6 +468,18 @@ L(pre_end): ASM_LINE_SEP \ #define CLOB_ARGS_1 CLOB_ARGS_2, "%r25" #define CLOB_ARGS_0 CLOB_ARGS_1, "%r26" +#define VDSO_NAME "LINUX_6.11" +#define VDSO_HASH 182951793 + +#ifdef __LP64__ +# define HAVE_CLOCK_GETTIME_VSYSCALL "__vdso_clock_gettime" +# define HAVE_GETTIMEOFDAY_VSYSCALL "__vdso_gettimeofday" +#else +# define HAVE_CLOCK_GETTIME_VSYSCALL "__vdso_clock_gettime" +# define HAVE_CLOCK_GETTIME64_VSYSCALL "__vdso_clock_gettime64" +# define HAVE_GETTIMEOFDAY_VSYSCALL "__vdso_gettimeofday" +#endif /* __LP64__ */ + #endif /* __ASSEMBLER__ */ #endif /* _LINUX_HPPA_SYSDEP_H */ |