From d0bc0d2bc8e5898bed6dfa6f253d164e9fc149f4 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 8 Nov 2019 03:03:43 +0100 Subject: riscv64: implement NPTL/TLS basically from or1k port of uClibc-ng, with fixes for structures in pthreadtypes.h from 64 bit architectures. 18 testsuite failures counted. --- .../nptl/sysdeps/unix/sysv/linux/aarch64/bits/pthreadtypes.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/aarch64/bits') diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/aarch64/bits/pthreadtypes.h b/libpthread/nptl/sysdeps/unix/sysv/linux/aarch64/bits/pthreadtypes.h index 47293a1a8..67fcee28b 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/aarch64/bits/pthreadtypes.h +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/aarch64/bits/pthreadtypes.h @@ -36,7 +36,6 @@ exposed on purpose. */ typedef unsigned long int pthread_t; - union pthread_attr_t { char __size[__SIZEOF_PTHREAD_ATTR_T]; @@ -44,7 +43,7 @@ union pthread_attr_t }; #ifndef __have_pthread_attr_t typedef union pthread_attr_t pthread_attr_t; -# define __have_pthread_attr_t1 +# define __have_pthread_attr_t 1 #endif typedef struct __pthread_internal_list @@ -75,9 +74,6 @@ typedef union long int __align; } pthread_mutex_t; -/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */ -#define __PTHREAD_SPINS 0 - typedef union { char __size[__SIZEOF_PTHREAD_MUTEXATTR_T]; @@ -141,8 +137,6 @@ typedef union long int __align; } pthread_rwlock_t; -#define __PTHREAD_RWLOCK_ELISION_EXTRA 0 - typedef union { char __size[__SIZEOF_PTHREAD_RWLOCKATTR_T]; -- cgit v1.2.3