diff options
| author | austinf <austinf@localhost> | 2009-03-19 07:29:30 +0000 |
|---|---|---|
| committer | austinf <austinf@localhost> | 2009-03-19 07:29:30 +0000 |
| commit | 2ea44632aac286a927069a1fb1f979db23c0b3c4 (patch) | |
| tree | 405585f334c03e95c106924c03ed4642f80874a0 /libpthread/nptl/sysdeps/sparc/tls.h | |
| parent | d38a60ef0325122761dea450cc163ac036d896e7 (diff) | |
| download | uClibc-alpine-2ea44632aac286a927069a1fb1f979db23c0b3c4.tar.bz2 uClibc-alpine-2ea44632aac286a927069a1fb1f979db23c0b3c4.tar.xz | |
sparc32 nptl functional
* pulled updated asm and headers from glibc for sparc32
* probably no cancellation support yet
* no shared TLS relocs yet, since ldso is hosed on sparc still
note: didn't use TARGET_SUBARCH method of includes since that would cause
other parts of libc to fail currently. Will need to be fixed later.
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 |
