parlib: Don't require zeroing for uthread_init()
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 13 Sep 2017 19:53:49 +0000 (15:53 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 14 Sep 2017 20:37:58 +0000 (16:37 -0400)
commit1eef0ace8fa2da1139b780040a886ec93d78b971
treefc054584e0723f89a297ee5bdfbac4bdbfd401c9
parent9da556152ad19494e230f7c63161342924d7aa49
parlib: Don't require zeroing for uthread_init()

uthread_init() is meant to be called on a thread so that can be run again.
Instead of memsetting the entire thing to 0 (which is large), we should set
the things we care about to initial values.

Note we were never actually zeroing the threads before - we just would
catch bugs on occasion.  The important stuff is flags and sysc, so that's
what we zero.

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