summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/sbi_hart.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sbi_hart.c b/lib/sbi_hart.c
index 09739b92..fae82c9f 100644
--- a/lib/sbi_hart.c
+++ b/lib/sbi_hart.c
@@ -95,7 +95,10 @@ static int delegate_traps(u32 hartid)
/* Send M-mode interrupts and most exceptions to S-mode */
interrupts = MIP_SSIP | MIP_STIP | MIP_SEIP;
exceptions = (1U << CAUSE_MISALIGNED_FETCH) |
+ (1U << CAUSE_FETCH_PAGE_FAULT) |
(1U << CAUSE_BREAKPOINT) |
+ (1U << CAUSE_LOAD_PAGE_FAULT) |
+ (1U << CAUSE_STORE_PAGE_FAULT) |
(1U << CAUSE_USER_ECALL);
}