]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/uclibc/lib/libpthread/src/l4.cc
update
[l4.git] / l4 / pkg / uclibc / lib / libpthread / src / l4.cc
index db06e619f74d2c3c47ec379229c0e0c193c2c984..7fa3c506fc5c3932d3fe68a02a1f8a255534f52b 100644 (file)
@@ -82,6 +82,7 @@ int __pthread_l4_initialize_main_thread(pthread_descr th)
 
   th->p_lock = handle_to_lock(l4_utcb());
   th->p_tid  = l4_utcb();
+  l4_utcb_tcr()->user[0] = l4_addr_t(th);
 
   return 0;
 }