Split up reflect_unhandled_trap()
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 21 Jan 2016 21:46:32 +0000 (16:46 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 2 Feb 2016 22:43:52 +0000 (17:43 -0500)
commit1f273a2529a0ca3daa9efeb0237bb35c282f0542
tree3bc28a83c0d0c2fc5e007f27073b8133f20ea754
parent1ed2c6b512c6d88e14f69d2534673b1f4d756426
Split up reflect_unhandled_trap()

reflect_unhandled_trap() was doing two things: putting the trap info into
the hardware context and reflecting that context back to the 2LS.  This
commit pulls out the latter part, which will be used when reflecting vm
exits.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/trap.h
kern/src/trap.c