Allows uthread_init() to be called repeatedly
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 22 Aug 2011 23:53:50 +0000 (16:53 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:36:06 +0000 (17:36 -0700)
commit8cb3465afbb93497a566b86c559d0a6d2bb747d3
treef09a98d2600c38525d7ffb9e6a6835b1dea3b431
parent24601dc6983754c667c87f5afc11d78b6b91b507
Allows uthread_init() to be called repeatedly

So a 2LS can repurpose a thread, getting a fresh TLS, etc.  There's an
assertion that could trip (the flags and sysc check), though no one
should have a uthread with an old sysc.  'flags' could go either way,
but for now we want to catch "DONT_MIGRATE" being turned on.
user/parlib/uthread.c
user/parlib/vcore.c