--- src/lib/libc_r/uthread/uthread_init.c 2005/05/02 20:40:50 1.6 +++ src/lib/libc_r/uthread/uthread_init.c 2005/05/03 07:21:45 1.7 @@ -192,6 +192,7 @@ _thread_init(void) /* Zero the global kernel thread structure: */ memset(&_thread_kern_thread, 0, sizeof(struct pthread)); _thread_kern_thread.flags = PTHREAD_FLAGS_PRIVATE; + _thread_kern_thread.tcb = _rtld_allocate_tls(NULL); memset(_thread_initial, 0, sizeof(struct pthread)); /* Initialize the waiting and work queues: */