Add the 'current_kthread' helper
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 8 Jun 2018 16:01:33 +0000 (12:01 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 8 Jun 2018 16:01:33 +0000 (12:01 -0400)
commit5f178b4f958ccf448761c40c58fba10e3e8e7ddf
treef9a17cdd5267629dac564de3095b687000d404ad
parentf85af48f30bd4d60828daf209f852fda1c5f47ab
Add the 'current_kthread' helper

Similar to current and current_ctx.  Those remain unchanged functionally,
but they now use the pcpui accessors.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/smp.h
kern/src/kthread.c