diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-04-25 22:28:13 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-04-25 22:28:13 +0000 |
commit | 468777e1d0dbd6cb8bcaee244a954824d5c84167 (patch) | |
tree | aabd8c6a9e825ebaed65f3f6ddf7efb07f2e2109 /nptl/sysdeps/powerpc/tls.h | |
parent | f24dca48290e4a1c731fc0bee94bc9a1f891b3fa (diff) | |
download | glibc-468777e1d0dbd6cb8bcaee244a954824d5c84167.tar glibc-468777e1d0dbd6cb8bcaee244a954824d5c84167.tar.gz glibc-468777e1d0dbd6cb8bcaee244a954824d5c84167.tar.bz2 glibc-468777e1d0dbd6cb8bcaee244a954824d5c84167.zip |
Update.
* pthread.c (__pthread_initialize_manager): Subtract
TLS_PRE_TCB_SIZE bytes from tcbp to get to descr.
* manager.c (pthread_handle_create): Subtract or add TLS_PRE_TCB_SIZE
instead of sizeof (pthread_descr).
(pthread_free): Add TLS_PRE_TCB_SIZE instead of sizeof (pthread_descr).
* sysdeps/powerpc/tls.h (TLS_INIT_TCB_SIZE, TLS_TCB_SIZE): Define to 0.
Diffstat (limited to 'nptl/sysdeps/powerpc/tls.h')
-rw-r--r-- | nptl/sysdeps/powerpc/tls.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nptl/sysdeps/powerpc/tls.h b/nptl/sysdeps/powerpc/tls.h index e3e0424fe0..6573bb6b04 100644 --- a/nptl/sysdeps/powerpc/tls.h +++ b/nptl/sysdeps/powerpc/tls.h @@ -81,7 +81,9 @@ typedef struct # define TLS_TCB_ALIGN __alignof__ (struct pthread) /* This is the size we need before TCB. */ -# define TLS_PRE_TCB_SIZE (sizeof (struct pthread) + 32) +# define TLS_PRE_TCB_SIZE \ + (sizeof (struct pthread) \ + + ((sizeof (tcbhead_t) + TLS_TCB_ALIGN - 1) & ~(TLS_TCB_ALIGN - 1))) # ifndef __powerpc64__ /* Register r2 (tp) is reserved by the ABI as "thread pointer". */ |