Allow thread0 uthreads to block
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 11 Aug 2015 19:17:20 +0000 (15:17 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 28 Sep 2015 19:14:00 +0000 (15:14 -0400)
commit3eb9c91d1625c44ed6f1b9b2528e891a6339174c
tree892770be6dc629a194424f0f5d1973d19f85d45d
parent81600b61cc0e978dc9996be6804a8245ec2fd029
Allow thread0 uthreads to block

Thread0 uthreads could block on syscalls, but they couldn't block on
things like mutexes or other constructs that are outside the 2LS, such
as event queues.

The initialization of thread0_info from uthread_lib_init() could be done
statically, but we'll need this init function at some point.
user/parlib/thread0_sched.c
user/parlib/uthread.c