From: Helge Deller <deller@kernel.org>
To: libc-alpha@sourceware.org,
John David Anglin <dave.anglin@bell.net>,
carlos@redhat.com
Cc: linux-parisc@vger.kernel.org
Subject: [PATCH] hppa/vdso: Add wrappers for vDSO functions
Date: Wed, 19 Jun 2024 20:36:54 +0200 [thread overview]
Message-ID: <ZnMlRrsmHzrEkpYL@p100> (raw)
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 <deller@gmx.de>
diff -up ./sysdeps/unix/sysv/linux/hppa/sysdep.h.org ./sysdeps/unix/sysv/linux/hppa/sysdep.h
--- ./sysdeps/unix/sysv/linux/hppa/sysdep.h.org 2024-06-15 20:20:58.992000000 +0000
+++ ./sysdeps/unix/sysv/linux/hppa/sysdep.h 2024-06-19 18:26:08.324000000 +0000
@@ -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 */
reply other threads:[~2024-06-19 18:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZnMlRrsmHzrEkpYL@p100 \
--to=deller@kernel.org \
--cc=carlos@redhat.com \
--cc=dave.anglin@bell.net \
--cc=libc-alpha@sourceware.org \
--cc=linux-parisc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox