From bcbfaf1def57a02b15709e476bd069bdf4ba2619 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 29 Oct 2004 01:25:24 +0000 Subject: * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_fork): Use i386_thread_state instead of machine_thread_state. --- ChangeLog | 5 +++++ sysdeps/mach/hurd/i386/tls.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 11592e7f87..5fcfdaeaba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-10-28 Roland McGrath + + * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_fork): Use i386_thread_state + instead of machine_thread_state. + 2004-10-28 Roland McGrath * sysdeps/unix/sysv/linux/syscalls.list: Remove setaltroot. diff --git a/sysdeps/mach/hurd/i386/tls.h b/sysdeps/mach/hurd/i386/tls.h index a7c291c53f..ff849716e0 100644 --- a/sysdeps/mach/hurd/i386/tls.h +++ b/sysdeps/mach/hurd/i386/tls.h @@ -143,9 +143,11 @@ _hurd_tls_init (tcbhead_t *tcb, int secondcall) asm ("movl %%gs:%P1,%0" : "=q" (_dtv) : "i" (offsetof (tcbhead_t, dtv)));\ _dtv; }) +#include + /* Set up TLS in the new thread of a fork child, copying from our own. */ static inline error_t __attribute__ ((unused)) -_hurd_tls_fork (thread_t child, struct machine_thread_state *state) +_hurd_tls_fork (thread_t child, struct i386_thread_state *state) { /* Fetch the selector set by _hurd_tls_init. */ int sel; -- cgit v1.2.3