summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2021-06-18 21:05:17 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2021-06-18 21:05:17 +0000
commit856d190d3c4810a074926d4802b8edc1cf6e497a (patch)
tree53292e6aced6cf4ad63f5cf54613c66800dae705 /sys
parent69a15bbd70e4dfd57fbe0d1a489cf4f439ecffdb (diff)
Need to enable interrupts while processing supervisor traps as well.
yikes deraadt@, ok mlarkin@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/riscv64/riscv64/trap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/riscv64/riscv64/trap.c b/sys/arch/riscv64/riscv64/trap.c
index 3b57620f878..516a9fa767a 100644
--- a/sys/arch/riscv64/riscv64/trap.c
+++ b/sys/arch/riscv64/riscv64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.13 2021/05/20 04:22:33 drahn Exp $ */
+/* $OpenBSD: trap.c,v 1.14 2021/06/18 21:05:16 kettenis Exp $ */
/*
* Copyright (c) 2020 Shivam Waghela <shivamwaghela@gmail.com>
@@ -77,6 +77,8 @@ do_trap_supervisor(struct trapframe *frame)
return;
}
+ intr_enable();
+
exception = (frame->tf_scause & EXCP_MASK);
switch (exception) {
case EXCP_FAULT_LOAD: