parlib: Add uthread_create()
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 12 Apr 2017 16:35:30 +0000 (12:35 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 3 May 2017 16:13:02 +0000 (12:13 -0400)
commitfc62f17d36cfddf643bdb155a6e0045874ef11cc
tree85cb29f0accff1a8da597beec6ac74c2a8e9fd5e
parentc9e6df7825e7e67247c5381041ff1ed9d8f120c2
parlib: Add uthread_create()

And the corresponding 2LS op.  uthread_create() creates and runs a generic
thread that runs a function - similar to pthread_create(), but it works
regardless of the 2LS being used.

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