Uthread flag tells us where the context is saved
authorBarret Rhoden <brho@cs.berkeley.edu>
Sat, 19 Nov 2011 02:00:59 +0000 (18:00 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 15 Dec 2011 22:48:40 +0000 (14:48 -0800)
commitef8904bab5829da812881a61b319bc2f82ce6d6a
tree17cb30b7063cfb0633835410dcaf4232baf71e91
parent67e1ccee808ea0053f40fd3fc2a7bb8a85d028cb
Uthread flag tells us where the context is saved

So we know how to save it during preemption recovery.  The flag means
that the context for the uthread is in the utf.  If it isn't there, it's
in the VCPD notif trapframe (or will be there soon, in such a manner
that we won't steal the thread or handle other vcore's preemptions until
it is in the notif_tf).
user/parlib/include/uthread.h
user/parlib/uthread.c