Add a helper for finding current_uthread's context
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 8 Sep 2016 15:47:03 +0000 (11:47 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 16 Sep 2016 18:35:09 +0000 (14:35 -0400)
commitaf69ba3229720c6da47955fcbbc206a93416cf6b
treeef088058f4eefca46e837a29b6b7387bb2d4197f
parent600e51086e007880da2025a2cef7552af43957d0
Add a helper for finding current_uthread's context

It's a very easy bug to look into current_uthread to see its context, but
you might be looking at an old context.  Use this helper to find the
correct user context for current_uthread.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/parlib/include/parlib/uthread.h