aboutsummaryrefslogtreecommitdiff
path: root/pk
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-03-27 14:30:58 -0700
committerAndrew Waterman <andrew@sifive.com>2017-03-27 14:30:58 -0700
commit3473915b3a3fd925a68fc3260c64824cab2846d2 (patch)
treea24e8d3991fd6c5619d752a2ae8a5442461964e3 /pk
parent96e5ed750e7447f2c0316368e5592fd331ee345c (diff)
downloadpk-3473915b3a3fd925a68fc3260c64824cab2846d2.zip
pk-3473915b3a3fd925a68fc3260c64824cab2846d2.tar.gz
pk-3473915b3a3fd925a68fc3260c64824cab2846d2.tar.bz2
Separate page faults from physical memory access exceptions
Diffstat (limited to 'pk')
-rw-r--r--pk/handlers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pk/handlers.c b/pk/handlers.c
index 1961852..b0eb76b 100644
--- a/pk/handlers.c
+++ b/pk/handlers.c
@@ -83,13 +83,13 @@ void handle_trap(trapframe_t* tf)
const static trap_handler trap_handlers[] = {
[CAUSE_MISALIGNED_FETCH] = handle_misaligned_fetch,
- [CAUSE_FAULT_FETCH] = handle_fault_fetch,
+ [CAUSE_FETCH_PAGE_FAULT] = handle_fault_fetch,
[CAUSE_ILLEGAL_INSTRUCTION] = handle_illegal_instruction,
[CAUSE_USER_ECALL] = handle_syscall,
[CAUSE_BREAKPOINT] = handle_breakpoint,
[CAUSE_MISALIGNED_STORE] = handle_misaligned_store,
- [CAUSE_FAULT_LOAD] = handle_fault_load,
- [CAUSE_FAULT_STORE] = handle_fault_store,
+ [CAUSE_LOAD_PAGE_FAULT] = handle_fault_load,
+ [CAUSE_STORE_PAGE_FAULT] = handle_fault_store,
};
kassert(tf->cause < ARRAY_SIZE(trap_handlers) && trap_handlers[tf->cause]);