diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-05-20 09:55:25 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2005-05-20 09:55:25 +0000 |
commit | 7563ff8b1f85cfd6b6ffaf9d921201c0d1893d84 (patch) | |
tree | 99fd93b085caaf9668eaf587e822f3aae421bc1e /nptl/sysdeps/s390 | |
parent | 2cc5f1a08ad6ec3753f621564400d7924d0a4fdc (diff) | |
download | glibc-7563ff8b1f85cfd6b6ffaf9d921201c0d1893d84.tar.gz glibc-7563ff8b1f85cfd6b6ffaf9d921201c0d1893d84.tar.xz glibc-7563ff8b1f85cfd6b6ffaf9d921201c0d1893d84.zip |
* sysdeps/i386/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN): Define to
size/alignment of struct pthread rather than tcbhead_t. * sysdeps/x86_64/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN): Likewise. * sysdeps/s390/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN): Likewise. * sysdeps/sparc/tls.h (TLS_INIT_TCB_SIZE, TLS_INIT_TCB_ALIGN): Likewise.
Diffstat (limited to 'nptl/sysdeps/s390')
-rw-r--r-- | nptl/sysdeps/s390/tls.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nptl/sysdeps/s390/tls.h b/nptl/sysdeps/s390/tls.h index e93f3d080c..060dde39df 100644 --- a/nptl/sysdeps/s390/tls.h +++ b/nptl/sysdeps/s390/tls.h @@ -81,11 +81,13 @@ typedef struct /* Get the thread descriptor definition. */ # include <nptl/descr.h> -/* This is the size of the initial TCB. */ -# define TLS_INIT_TCB_SIZE sizeof (tcbhead_t) +/* This is the size of the initial TCB. Can't be just sizeof (tcbhead_t), + because NPTL getpid, __libc_alloca_cutoff etc. need (almost) the whole + struct pthread even when not linked with -lpthread. */ +# define TLS_INIT_TCB_SIZE sizeof (struct pthread) /* Alignment requirements for the initial TCB. */ -# define TLS_INIT_TCB_ALIGN __alignof__ (tcbhead_t) +# define TLS_INIT_TCB_ALIGN __alignof__ (struct pthread) /* This is the size of the TCB. */ # define TLS_TCB_SIZE sizeof (struct pthread) |