uth: Track thread0 in uthread.c
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 13 Jul 2015 18:08:31 +0000 (14:08 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Jul 2015 20:07:52 +0000 (16:07 -0400)
commit459c2b3d1afbbaa57935b5513c1cd9fbc019860d
tree913e333069d380998dd920572595c92e46c5429f
parent4abbfb71a699d7f2543161b1177f7a638b02c034
uth: Track thread0 in uthread.c

Needed to have SCPs with no 2LS block uthreads on syscalls properly.
The code prior to this always assumes that current_uthread is set, and
it is thread0.  It'll be easier to reuse parts of uthread for
non-full-2LS SCPs if we can clear current_uthread on occasion.  Still,
in these cases we only have one uthread: thread0.
user/parlib/thread0_sched.c
user/parlib/uthread.c