diff options
Diffstat (limited to 'libpthread/nptl/sysdeps/sparc/tls.h')
| -rw-r--r-- | libpthread/nptl/sysdeps/sparc/tls.h | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/libpthread/nptl/sysdeps/sparc/tls.h b/libpthread/nptl/sysdeps/sparc/tls.h index ea26ed32f..e5d27fb57 100644 --- a/libpthread/nptl/sysdeps/sparc/tls.h +++ b/libpthread/nptl/sysdeps/sparc/tls.h @@ -54,9 +54,9 @@ typedef struct  #endif /* __ASSEMBLER__ */  /* We require TLS support in the tools.  */ -#ifndef HAVE_TLS_SUPPORT -# error "TLS support is required." -#endif +#define HAVE_TLS_SUPPORT +#define HAVE___THREAD 1 +#define HAVE_TLS_MODEL_ATTRIBUTE 1  /* Signal that TLS support is available.  */  #define USE_TLS	1 @@ -65,9 +65,6 @@ typedef struct  /* Get system call information.  */  # include <sysdep.h> -/* Get the thread descriptor definition.  */ -# include <nptl/descr.h> -  register struct pthread *__thread_self __asm__("%g7");  /* This is the size of the initial TCB.  Can't be just sizeof (tcbhead_t), @@ -84,6 +81,9 @@ register struct pthread *__thread_self __asm__("%g7");  /* Alignment requirements for the TCB.  */  # define TLS_TCB_ALIGN __alignof__ (struct pthread) +/* Get the thread descriptor definition.  */ +# include <descr.h> +  /* The TCB can have any size and the memory following the address the     thread pointer points to is unspecified.  Allocate the TCB there.  */  # define TLS_TCB_AT_TP	1  | 
