public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/arm/morello/main] aarch64: morello: nptl: fix pthread types for 128 bit pointers
@ 2022-08-05 19:34 Szabolcs Nagy
  0 siblings, 0 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2022-08-05 19:34 UTC (permalink / raw)
  To: glibc-cvs

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 */


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [glibc/arm/morello/main] aarch64: morello: nptl: fix pthread types for 128 bit pointers
@ 2022-11-23 14:45 Szabolcs Nagy
  0 siblings, 0 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2022-11-23 14:45 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1ffce991bd8c38d39d2acc69ee91436079efef53

commit 1ffce991bd8c38d39d2acc69ee91436079efef53
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 */

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [glibc/arm/morello/main] aarch64: morello: nptl: fix pthread types for 128 bit pointers
@ 2022-10-27 13:56 Szabolcs Nagy
  0 siblings, 0 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2022-10-27 13:56 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c0700f7a6c8dab64d57b941167c95bd9b6591997

commit c0700f7a6c8dab64d57b941167c95bd9b6591997
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 */

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [glibc/arm/morello/main] aarch64: morello: nptl: fix pthread types for 128 bit pointers
@ 2022-10-26 15:17 Szabolcs Nagy
  0 siblings, 0 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2022-10-26 15:17 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c7b27043ec55a11224568a6e240d307ac0355cf4

commit c7b27043ec55a11224568a6e240d307ac0355cf4
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 */

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-11-23 14:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-05 19:34 [glibc/arm/morello/main] aarch64: morello: nptl: fix pthread types for 128 bit pointers Szabolcs Nagy
2022-10-26 15:17 Szabolcs Nagy
2022-10-27 13:56 Szabolcs Nagy
2022-11-23 14:45 Szabolcs Nagy

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).