]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
aarch64: morello: nptl: fix pthread types for 128 bit pointers
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 13 Jul 2022 11:22:10 +0000 (12:22 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 27 Oct 2022 13:46:52 +0000 (14:46 +0100)
sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h

index 668fd9c8fd8dfd5f07b3e1fa51c1b8d0382f7aa9..f1e4bda9dec73d21c55cd4576133af0427a2af80 100644 (file)
 # 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
 # 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 */