Use a kthread flag to save the address space
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 7 Dec 2015 20:46:42 +0000 (15:46 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 10 Dec 2015 15:40:20 +0000 (10:40 -0500)
commitc9e873dc9d1550db79f2a7024a38fa0698570c12
treec1a6d8dc39a61cad9057a19edb43c9424ec81cfc
parentfc2b5cf4af658f7d491237bbf89e6ffe3c731417
Use a kthread flag to save the address space

Previously, it was assumed that ktasks never care about their address
space.  This is not true - some ktasks (full ktasks with names, RKMs,
things executing in the kernel on their own, etc) may want to send an
event.

Now, with this flag, we can fix switch_to for ktasks.

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