diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-04-10 14:58:00 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-04-10 14:58:00 -0700 |
commit | e474878db4a406fb0bc7f6051314352f4406fcd2 (patch) | |
tree | 3286da6cb52877f8d51f2346f0ec51bbb236f23a /pk/handlers.c | |
parent | 01fd29cb6ef8202ef6201f6f471dec9cbd1a4145 (diff) | |
download | pk-e474878db4a406fb0bc7f6051314352f4406fcd2.zip pk-e474878db4a406fb0bc7f6051314352f4406fcd2.tar.gz pk-e474878db4a406fb0bc7f6051314352f4406fcd2.tar.bz2 |
Fix stack discipline for recursive traps
Diffstat (limited to 'pk/handlers.c')
-rw-r--r-- | pk/handlers.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/pk/handlers.c b/pk/handlers.c index 8678327..3ceac1e 100644 --- a/pk/handlers.c +++ b/pk/handlers.c @@ -81,8 +81,6 @@ static void handle_syscall(trapframe_t* tf) static void handle_interrupt(trapframe_t* tf) { clear_csr(sstatus, SSTATUS_SIP); - - pop_tf(tf); } void handle_trap(trapframe_t* tf) @@ -107,6 +105,4 @@ void handle_trap(trapframe_t* tf) kassert(tf->cause < ARRAY_SIZE(trap_handlers) && trap_handlers[tf->cause]); trap_handlers[tf->cause](tf); - - pop_tf(tf); } |