Use a temp process for test_uaccess
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 10 Dec 2015 16:19:30 +0000 (11:19 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 10 Dec 2015 16:19:30 +0000 (11:19 -0500)
commita1c75135e810a7b645a398e6fc8da16bf62af041
treec53ccbdefa3bb8e729fb0b26db56fc692e544968
parentc9e873dc9d1550db79f2a7024a38fa0698570c12
Use a temp process for test_uaccess

The usage of switch_to(0) is a little problematic.  This way, we just have
a temp process and can control its address space for the tests.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/ktest/pb_ktests.c