aboutsummaryrefslogtreecommitdiff
path: root/pk/handlers.c
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2015-05-09 16:17:11 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2015-05-09 16:41:10 -0700
commit1a8572a47db3151323ec390c430da37d831fc962 (patch)
tree0e84071d505a875c874460a7d036ff9aa4b8931a /pk/handlers.c
parentac7853a1bc5fcbee820a4f1472aa59eaf074e4e9 (diff)
downloadriscv-pk-1a8572a47db3151323ec390c430da37d831fc962.zip
riscv-pk-1a8572a47db3151323ec390c430da37d831fc962.tar.gz
riscv-pk-1a8572a47db3151323ec390c430da37d831fc962.tar.bz2
Upgrade to privileged architecture 1.7
Diffstat (limited to 'pk/handlers.c')
-rw-r--r--pk/handlers.c4
1 files changed, 2 insertions, 2 deletions
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,