hppa/vdso: Add wrappers for vDSO functions
PATCH 1/1 hppa/vdso: Add wrappers for vDSO functions
The upcoming parisc (hppa) Linux kernel v6.11 will include basic vDSO support for gettimeofday(), clock_gettime() and clock_gettime64() syscalls for 32-bit userspace.
The patch below adds the necessary glue code for glibc.
Signed-off-by Helge Deller <[email protected]>
sysdeps/unix/sysv/linux/hppa/sysdep.h renamed from sysdeps/unix/sysv/linux/hppa/sysdep.h.org +10 -0
@@ -468,6 +468,16 @@ L(pre_end): ASM_LINE_SEP \#define CLOB_ARGS_1 CLOB_ARGS_2, "%r25"#define CLOB_ARGS_0 CLOB_ARGS_1, "%r26" +#ifndef __LP64__ +# define VDSO_NAME "LINUX_6.11" +# define VDSO_HASH 182951793 + +/* List of system calls which are supported as vsyscalls. */ +# 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 */