parlib: Prevent running ctors twice
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 22 Aug 2017 18:21:23 +0000 (14:21 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 22 Aug 2017 20:14:49 +0000 (16:14 -0400)
commitdb9f1bbd0a95cdcebbf8424122633eccb2ea17a2
treee67fc51b70f5a3d271e953a9fa2cc5355a28eef7
parentc77d5ade84b7e09fec2a2f4f1e339385238b4c28
parlib: Prevent running ctors twice

Previously, we only were protecting vcore_lib_init() and
uthread_lib_init().  However, there are other ctors out there, some of
which have external effects (devalarm).

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