diff options
author | Andrew Waterman <andrew@sifive.com> | 2017-03-27 14:30:58 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2017-03-27 14:30:58 -0700 |
commit | 3473915b3a3fd925a68fc3260c64824cab2846d2 (patch) | |
tree | a24e8d3991fd6c5619d752a2ae8a5442461964e3 /machine/minit.c | |
parent | 96e5ed750e7447f2c0316368e5592fd331ee345c (diff) | |
download | pk-3473915b3a3fd925a68fc3260c64824cab2846d2.zip pk-3473915b3a3fd925a68fc3260c64824cab2846d2.tar.gz pk-3473915b3a3fd925a68fc3260c64824cab2846d2.tar.bz2 |
Separate page faults from physical memory access exceptions
Diffstat (limited to 'machine/minit.c')
-rw-r--r-- | machine/minit.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |