public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Szabolcs Nagy <nsz@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/arm/morello/main] aarch64: morello: nptl: fix pthread types for 128 bit pointers
Date: Fri, 5 Aug 2022 19:34:54 +0000 (GMT) [thread overview]
Message-ID: <20220805193454.BAC3F38582BE@sourceware.org> (raw)
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=63bee6f1550d7b8a2a270d644c5f8514adcf5b29
commit 63bee6f1550d7b8a2a270d644c5f8514adcf5b29
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date: Wed Jul 13 12:22:10 2022 +0100
aarch64: morello: nptl: fix pthread types for 128 bit pointers
Diff:
---
sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h b/sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
index 668fd9c8fd..f1e4bda9de 100644
--- a/sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
+++ b/sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
@@ -29,6 +29,16 @@
# define __SIZEOF_PTHREAD_RWLOCK_T 48
# define __SIZEOF_PTHREAD_BARRIER_T 20
# define __SIZEOF_PTHREAD_BARRIERATTR_T 4
+# define __LOCK_ALIGNMENT
+#elif defined __CHERI_PURE_CAPABILITY__
+# define __SIZEOF_PTHREAD_ATTR_T 112
+# define __SIZEOF_PTHREAD_MUTEX_T 64
+# define __SIZEOF_PTHREAD_MUTEXATTR_T 8
+# define __SIZEOF_PTHREAD_CONDATTR_T 8
+# define __SIZEOF_PTHREAD_RWLOCK_T 56
+# define __SIZEOF_PTHREAD_BARRIER_T 32
+# define __SIZEOF_PTHREAD_BARRIERATTR_T 8
+# define __LOCK_ALIGNMENT __attribute__ ((__aligned__(16)))
#else
# define __SIZEOF_PTHREAD_ATTR_T 64
# define __SIZEOF_PTHREAD_MUTEX_T 48
@@ -37,11 +47,11 @@
# define __SIZEOF_PTHREAD_RWLOCK_T 56
# define __SIZEOF_PTHREAD_BARRIER_T 32
# define __SIZEOF_PTHREAD_BARRIERATTR_T 8
+# define __LOCK_ALIGNMENT
#endif
#define __SIZEOF_PTHREAD_COND_T 48
#define __SIZEOF_PTHREAD_RWLOCKATTR_T 8
-#define __LOCK_ALIGNMENT
#define __ONCE_ALIGNMENT
#endif /* bits/pthreadtypes.h */
next reply other threads:[~2022-08-05 19:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-05 19:34 Szabolcs Nagy [this message]
2022-10-26 15:17 Szabolcs Nagy
2022-10-27 13:56 Szabolcs Nagy
2022-11-23 14:45 Szabolcs Nagy
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=20220805193454.BAC3F38582BE@sourceware.org \
--to=nsz@sourceware.org \
--cc=glibc-cvs@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).