Ensure vcore context code includes parlib/assert.h
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 26 Oct 2015 21:13:15 +0000 (17:13 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 28 Oct 2015 16:05:13 +0000 (12:05 -0400)
commit8a9a5b319756b66c459491c03179fb4f81e4e00c
tree8bfc57b5bb031e9c8095b4d18405199fa8262c96
parent199cd52273a8b2f0d21f3d69ce59efab06561e72
Ensure vcore context code includes parlib/assert.h

Code that runs in vcore context should call parlib's assert.  Otherwise,
there is a chance glibc's assert will call glibc's printf, which may run
off the end of the stack and page fault.

By putting parlib/assert.h in common.h, any downstream headers, such as
vcore.h, event.t, and parlib.h, will pick up our assert().

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/benchutil/alarm.c
user/parlib/include/common.h
user/parlib/include/vcore.h
user/parlib/uthread.c
user/pthread/futex.c
user/pthread/pthread.c