summaryrefslogtreecommitdiff
path: root/src/arch/riscv
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2018-02-16 13:36:46 +0100
committerMartin Roth <martinroth@google.com>2018-02-20 20:46:53 +0000
commit61864143d42b0c506fd78e181d87c743266c6494 (patch)
tree01af87b7818752fc708efcf247cae1ffc92b2b70 /src/arch/riscv
parenta5c49b8d434d4a99e86c3e79c2b7f1c461aad577 (diff)
arch/riscv: Delegate the page fault exceptions
These exceptions were new in the Privileged Architecture spec 1.10. We need to delegate them to S-mode. Change-Id: Iec15afe9656107b9aeea1677c5b8dc7d654fa746 Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Reviewed-on: https://review.coreboot.org/23774 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/arch/riscv')
-rw-r--r--src/arch/riscv/virtual_memory.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/riscv/virtual_memory.c b/src/arch/riscv/virtual_memory.c
index 3cc2cc9295..3bee86865d 100644
--- a/src/arch/riscv/virtual_memory.c
+++ b/src/arch/riscv/virtual_memory.c
@@ -32,6 +32,9 @@ static int delegate = 0
| (1 << CAUSE_LOAD_ACCESS)
| (1 << CAUSE_STORE_ACCESS)
| (1 << CAUSE_USER_ECALL)
+ | (1 << CAUSE_FETCH_PAGE_FAULT)
+ | (1 << CAUSE_LOAD_PAGE_FAULT)
+ | (1 << CAUSE_STORE_PAGE_FAULT)
;
void mstatus_init(void)