public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/schwab/ilp32-2.32] aarch64: add pthread-offset.h for ILP32
@ 2020-08-05 19:54 Andreas Schwab
0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2020-08-05 19:54 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8b872027f41812a3e0474654fe4f589df9c50394
commit 8b872027f41812a3e0474654fe4f589df9c50394
Author: Andreas Schwab <schwab@suse.de>
Date: Wed Feb 5 17:29:03 2020 +0100
aarch64: add pthread-offset.h for ILP32
Diff:
---
sysdeps/aarch64/nptl/pthread-offsets.h | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/sysdeps/aarch64/nptl/pthread-offsets.h b/sysdeps/aarch64/nptl/pthread-offsets.h
index 31f0587bec..280d5d5ad2 100644
--- a/sysdeps/aarch64/nptl/pthread-offsets.h
+++ b/sysdeps/aarch64/nptl/pthread-offsets.h
@@ -1,3 +1,11 @@
-#define __PTHREAD_MUTEX_KIND_OFFSET 16
+#ifdef __ILP32__
+# define __PTHREAD_MUTEX_KIND_OFFSET 12
+#else
+# define __PTHREAD_MUTEX_KIND_OFFSET 16
+#endif
-#define __PTHREAD_RWLOCK_FLAGS_OFFSET 48
+#ifdef __ILP32__
+# define __PTHREAD_RWLOCK_FLAGS_OFFSET 40
+#else
+# define __PTHREAD_RWLOCK_FLAGS_OFFSET 48
+#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-05 19:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-05 19:54 [glibc/schwab/ilp32-2.32] aarch64: add pthread-offset.h for ILP32 Andreas Schwab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).