From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 850F63851523; Thu, 27 Oct 2022 13:56:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 850F63851523 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666878963; bh=5x2+Y8LvmQEkeNtVXL+cNyPnkqo1iTMFlo7emxfjfI4=; h=From:To:Subject:Date:From; b=lm4znJfJVhdFikbt3ltJlk944ntyecF1eq8BKrSjgn+Vb+WwAt1D83V4oB8FLFwKZ Lz1wal6AWlDrE80ixcGnCdcjYM5iHGvE9QW/P68Rqc02KlqMtWYvcx2TvHClCA4AQr ulmGah4i/QK5Efe3KW//7O4r8FHI1ACMkHKCl8gg= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] aarch64: morello: nptl: fix pthread types for 128 bit pointers X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: f65ed89a55172f2df5d214c854eaa9dadf7be35d X-Git-Newrev: c0700f7a6c8dab64d57b941167c95bd9b6591997 Message-Id: <20221027135603.850F63851523@sourceware.org> Date: Thu, 27 Oct 2022 13:56:03 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c0700f7a6c8dab64d57b941167c95bd9b6591997 commit c0700f7a6c8dab64d57b941167c95bd9b6591997 Author: Szabolcs Nagy 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 */