diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-03-13 16:48:39 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-03-13 16:48:39 +0100 |
commit | 2c829f65e5c6e00d67ac94f74d32dda678d91e29 (patch) | |
tree | d23e792cdd52d4a0dec625882ba15e5bd6827676 | |
parent | dc53783597d7ece464b0e6c873025d6d6f35fd60 (diff) |
Fix boot with statically-linked exec server.
-rw-r--r-- | .topdeps | 2 | ||||
-rw-r--r-- | .topmsg | 50 |
2 files changed, 5 insertions, 47 deletions
@@ -1 +1 @@ -baseline +t/tls @@ -1,48 +1,6 @@ -From: Thomas Schwinge <thomas@schwinge.name> -Subject: [PATCH] tls +From: Samuel Thibault <samuel.thibault@ens-lyon.org> +Subject: [PATCH] Fix boot with statically-linked exec server. -TLS support. +* -2009-07-30 Samuel Thibault <samuel.thibault@gnu.org> - - * 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 (_hurd_tls_init): Use kern_return_t - error type. Use first GDT slot, 0x48. - (_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. +Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> |