2004-10-26 Roland McGrath <roland@frob.com>
authorroland <roland>
Wed, 27 Oct 2004 00:55:31 +0000 (00:55 +0000)
committerroland <roland>
Wed, 27 Oct 2004 00:55:31 +0000 (00:55 +0000)
* sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Initialize TCB->tcb.

sysdeps/mach/hurd/i386/tls.h

index f81180f..9108346 100644 (file)
@@ -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 ();