get_tlsvar_linaddr() and uthread notes
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 15 May 2015 01:30:53 +0000 (21:30 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 15 May 2015 01:35:44 +0000 (21:35 -0400)
commitafba1867d24d7f46f0bad5aa3eff634c4096810f
treea52a0e195e0700978e8ffa7a33814abe4a597a38
parentfa4385d12de5b47a584bc402956d5c58253bf27e
get_tlsvar_linaddr() and uthread notes

While debugging "Allows pthread_yield() before lib_init()", I noticed
the issues with __vcore_context noted in uthread_manage_thread0().

I made get_tlsvar_linaddr() to debug it.  It's just what we were doing
for get_cur_uth_addr(), but for any TLS variable.
user/parlib/include/uthread.h
user/parlib/include/vcore.h
user/parlib/uthread.c