diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2007-06-13 00:00:00 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@schwinge.name> | 2011-10-20 16:51:57 +0200 |
commit | 1b37ff3740644d3febf6ae6e7f756a8d152a37e6 (patch) | |
tree | f63be8efc388bb0789334618f02478cce852a7e6 /libpthread | |
parent | 2e10e74697a257cd032d586c0ec7413874758c82 (diff) |
TLS support for libpthread, Mach/Hurd (x86).
* Makefile (CFLAGS): Define ENABLE_TLS.
* pthread/pt-create.c (__pthread_create_internal) [ENABLE_TLS]: Call
into glibc to allocate static TLS block.
* pthread/pt-exit.c (pthread_exit) [ENABLE_TLS]: Call into glibc to
deallocate static TLS block.
* pthread/pt-internal.h [ENABLE_TLS] (tcbhead_t): New structure; as in
glibc.
(__pthread) [ENABLE_TLS]: Add TCB member.
[ENABLE_TLS] (_dl_allocate_tls, _dl_deallocate_tls): Declare; from
glibc.
* sysdeps/mach/hurd/pt-sysdep.h (__thread_set_pcsp): Rename to
__thread_set_pcsptp. Add SET_TP and TP parameters. Change all
callers.
* sysdeps/mach/hurd/i386/pt-machdep.c (__thread_set_pcsptp): Imlement
TLS support.
* sysdeps/mach/hurd/i386/pt-setup.c (__pthread_setup): Likewise.
Diffstat (limited to 'libpthread')
0 files changed, 0 insertions, 0 deletions