glibc/mach
Samuel Thibault f8baf2a224 hurd: add TLS support
* sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
	Define 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 (TCB_ALIGNMENT, HURD_SEL_LDT): New
	macros.
	(_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
	descriptor instead of creating a new one.
	(_hurd_tls_new): New function, creates a new descriptor and updates tcb.

	* mach/setup-thread.c: Include <ldsodefs.h>.
	(__mach_setup_thread): Call _dl_allocate_tls, pass
	MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
	MACHINE_THREAD_STATE_FLAVOR, before getting
	MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
	MACHINE_THREAD_STATE_FLAVOR with the result.
	* hurd/hurdfault.c (_hurdsig_fault_init): Call
	MACHINE_THREAD_STATE_FIX_NEW.
	* sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
	too.  Add original thread parameter.
2018-03-17 03:17:36 +01:00
..
mach hurd: Fix inclusion of mach headers in all standards 2018-03-04 02:53:09 +01:00
devstream.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
err_boot.sub Remove trailing whitespace from mach/*.sub. 2013-06-10 22:47:08 +00:00
err_ipc.sub Remove trailing whitespace from mach/*.sub. 2013-06-10 22:47:08 +00:00
err_kern.sub * hurd/hurdmalloc.c: Remove $ tag $ magic. 2005-12-06 01:24:30 +00:00
err_mach.sub Remove trailing whitespace from mach/*.sub. 2013-06-10 22:47:08 +00:00
err_server.sub * hurd/hurdmalloc.c: Remove $ tag $ magic. 2005-12-06 01:24:30 +00:00
err_us.sub * hurd/hurdmalloc.c: Remove $ tag $ magic. 2005-12-06 01:24:30 +00:00
error_compat.c * hurd/hurdmalloc.c: Remove $ tag $ magic. 2005-12-06 01:24:30 +00:00
errorlib.h * hurd/hurdmalloc.c: Remove $ tag $ magic. 2005-12-06 01:24:30 +00:00
errstring.c Fix old-style function definition 2016-09-20 23:10:51 +02:00
errsystems.awk * mach/errsystems.awk: Include <errno.h> in generated output. 2003-02-16 03:55:27 +00:00
lock-intern.h hurd: take __USE_EXTERN_INLINES into account and restrict inlines 2018-01-28 18:46:23 +01:00
mach_error.c mach: Fix old-style function definition. 2016-09-20 23:10:51 +02:00
mach_error.h * hurd/hurdmalloc.c: Remove $ tag $ magic. 2005-12-06 01:24:30 +00:00
mach_init.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
mach_init.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
mach.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Machrules hurd: Avoid using ino64_t and loff_t in headers 2018-03-04 02:13:56 +01:00
Makefile hurd: Move mach/param.h to bits/mach/param.h 2018-03-04 00:42:20 +01:00
mig_strncpy.c initial import 1995-02-18 01:27:10 +00:00
mig-alloc.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
mig-dealloc.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
mig-reply.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
msg-destroy.c Convert 703 function definitions to prototype style. 2015-10-16 20:21:49 +00:00
msg.c * sysdeps/mach/hurd/times.c: Fix typo in last change. 2002-02-19 00:22:30 +00:00
msgserver.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
mutex-init.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
mutex-solid.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
setup-thread.c hurd: add TLS support 2018-03-17 03:17:36 +01:00
shortcut.awk 2005-08-05 Roland McGrath <roland@redhat.com> 2005-08-08 20:52:23 +00:00
spin-lock.c hurd: take __USE_EXTERN_INLINES into account and restrict inlines 2018-01-28 18:46:23 +01:00
spin-lock.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
spin-solid.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
stack_chk_fail_local.c hurd: fix build with -fstack-protector-strong 2017-08-27 22:10:17 +02:00
syscalls.awk initial import 1995-02-18 01:27:10 +00:00
Versions hurd: Add expected ABI lists 2018-01-29 22:07:44 +01:00