From 269761cad38c05d687bb4cbb9db963498fa5b3fe Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 27 Oct 2004 00:55:39 +0000 Subject: * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Initialize TCB->tcb. --- sysdeps/mach/hurd/i386/tls.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sysdeps/mach') diff --git a/sysdeps/mach/hurd/i386/tls.h b/sysdeps/mach/hurd/i386/tls.h index f81180f9b1..910834687f 100644 --- a/sysdeps/mach/hurd/i386/tls.h +++ b/sysdeps/mach/hurd/i386/tls.h @@ -63,6 +63,10 @@ _hurd_tls_init (tcbhead_t *tcb, int secondcall) if (!secondcall) { + /* This field is used by TLS accesses to get our "thread pointer" + from the TLS point of view. */ + tcb->tcb = tcb; + /* Cache our thread port. */ tcb->self = __mach_thread_self (); -- cgit v1.2.3-70-g09d2