summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.topdeps2
-rw-r--r--.topmsg55
2 files changed, 6 insertions, 51 deletions
diff --git a/.topdeps b/.topdeps
index 180b47c18b..637a23cdcd 100644
--- a/.topdeps
+++ b/.topdeps
@@ -1 +1 @@
-baseline
+t/tls
diff --git a/.topmsg b/.topmsg
index 38bf5ea403..4286d807eb 100644
--- a/.topmsg
+++ b/.topmsg
@@ -1,54 +1,9 @@
COMMITED
-From: Samuel Thibault <samuel.thibault@gnu.org>
-Subject: [PATCH] hurd: add TLS support
+From: Thomas Schwinge <thomas@schwinge.name>
+Subject: [PATCH] tls-threadvar
-2009-07-30 Samuel Thibault <samuel.thibault@gnu.org>
+replace the custom threadvar mechanism with generic TLS.
+That will fix sigaltstack.
- Add TLS support: __mach_setup_tls allocates and sets
- architecture state for the TLS area. i386 fork needs to
- propagate the segment kernel definitions.
-
- * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC - 0]: Include <tls.h>
- * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>
- * include/errno.h (__GNU__): Do not define TLS errno for now.
-
- * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR): New
- macro.
- * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
- * sysdeps/mach/i386/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
- New macro, defined to i386_THREAD_STATE.
- (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead
- of i386_THREAD_STATE.
- (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
-
- * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
- i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
-
- * sysdeps/mach/hurd/i386/tls.h (__i386_selector_is_ldt): New
- macro.
- (_hurd_tls_init): Use kern_return_t error type. Use
- __i386_selector_is_ldt to test for LDT segment type.
- (_hurd_tls_fork): Use kern_return_t error type. Duplicate existing LDT
- descriptor instead of creating a new one.
- (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
-
- * mach/mach.h (__mach_setup_tls,mach_setup_tls): Add declarations.
- * mach/setup-thread.c: Include <ldsodefs.h>.
- (__mach_setup_thread): Use MACHINE_NEW_THREAD_STATE_FLAVOR instead of
- MACHINE_THREAD_STATE_FLAVOR.
- (__mach_setup_tls): New function.
- * hurd/hurdfault.c (_hurdsig_fault_init): Call
- MACHINE_THREAD_STATE_FIX_NEW.
-
- * sysdeps/mach/hurd/profil.c (update_waiter): Call __mach_setup_tls.
- * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Call
- __mach_setup_tls.
- * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls.
- * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for
- sigthread. Pass kernel thread to _hurd_tls_fork.
- * sysdeps/mach/hurd/i386/init-first.c (init): Move ELF header parsing
- after getting up the environment pointer. Call
- __pthread_initialize_minimal.
- * csu/libc-start.c (LIBC_START_MAIN) [__GNU__]: Do not call
- __pthread_initialize_minimal.
+Note: the added reply_port and _hurd_sigstate fields should be kept last.