diff options
Diffstat (limited to 'libpthread/sysdeps/viengoos/pt-thread-alloc.c')
-rw-r--r-- | libpthread/sysdeps/viengoos/pt-thread-alloc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libpthread/sysdeps/viengoos/pt-thread-alloc.c b/libpthread/sysdeps/viengoos/pt-thread-alloc.c index e47377c..266444f 100644 --- a/libpthread/sysdeps/viengoos/pt-thread-alloc.c +++ b/libpthread/sysdeps/viengoos/pt-thread-alloc.c @@ -45,9 +45,13 @@ __pthread_thread_alloc (struct __pthread *thread) if (__pthread_num_threads == 1) { thread->object = __hurd_startup_data->thread; - thread->threadid = l4_myself (); + thread->threadid = hurd_myself (); +#ifdef USE_L4 l4_set_user_defined_handle ((l4_word_t) thread); +#else + assert (0); +#endif /* Get the thread's UTCB and stash it. */ thread->utcb = hurd_utcb (); |