From 3473915b3a3fd925a68fc3260c64824cab2846d2 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Mon, 27 Mar 2017 14:30:58 -0700 Subject: Separate page faults from physical memory access exceptions --- machine/minit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'machine/minit.c') diff --git a/machine/minit.c b/machine/minit.c index 7083b05..48366d7 100644 --- a/machine/minit.c +++ b/machine/minit.c @@ -35,10 +35,10 @@ static void delegate_traps() uintptr_t interrupts = MIP_SSIP | MIP_STIP | MIP_SEIP; uintptr_t exceptions = (1U << CAUSE_MISALIGNED_FETCH) | - (1U << CAUSE_FAULT_FETCH) | + (1U << CAUSE_FETCH_PAGE_FAULT) | (1U << CAUSE_BREAKPOINT) | - (1U << CAUSE_FAULT_LOAD) | - (1U << CAUSE_FAULT_STORE) | + (1U << CAUSE_LOAD_PAGE_FAULT) | + (1U << CAUSE_STORE_PAGE_FAULT) | (1U << CAUSE_BREAKPOINT) | (1U << CAUSE_USER_ECALL); -- cgit v1.1