From 1a8572a47db3151323ec390c430da37d831fc962 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Sat, 9 May 2015 16:17:11 -0700 Subject: Upgrade to privileged architecture 1.7 --- pk/handlers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pk/handlers.c') diff --git a/pk/handlers.c b/pk/handlers.c index 3ceac1e..c1f7c2b 100644 --- a/pk/handlers.c +++ b/pk/handlers.c @@ -80,7 +80,7 @@ static void handle_syscall(trapframe_t* tf) static void handle_interrupt(trapframe_t* tf) { - clear_csr(sstatus, SSTATUS_SIP); + clear_csr(sip, SIP_SSIP); } void handle_trap(trapframe_t* tf) @@ -94,7 +94,7 @@ void handle_trap(trapframe_t* tf) [CAUSE_MISALIGNED_FETCH] = handle_misaligned_fetch, [CAUSE_FAULT_FETCH] = handle_fault_fetch, [CAUSE_ILLEGAL_INSTRUCTION] = handle_illegal_instruction, - [CAUSE_ECALL] = handle_syscall, + [CAUSE_USER_ECALL] = handle_syscall, [CAUSE_BREAKPOINT] = handle_breakpoint, [CAUSE_MISALIGNED_LOAD] = handle_misaligned_load, [CAUSE_MISALIGNED_STORE] = handle_misaligned_store, -- cgit v1.1