artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ea74c5
)
Need to enable interrupts while processing supervisor traps as well.
author
kettenis
<kettenis@openbsd.org>
Fri, 18 Jun 2021 21:05:16 +0000
(21:05 +0000)
committer
kettenis
<kettenis@openbsd.org>
Fri, 18 Jun 2021 21:05:16 +0000
(21:05 +0000)
yikes deraadt@, ok mlarkin@
sys/arch/riscv64/riscv64/trap.c
patch
|
blob
|
history
diff --git
a/sys/arch/riscv64/riscv64/trap.c
b/sys/arch/riscv64/riscv64/trap.c
index
3b57620
..
516a9fa
100644
(file)
--- a/
sys/arch/riscv64/riscv64/trap.c
+++ b/
sys/arch/riscv64/riscv64/trap.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: trap.c,v 1.1
3 2021/05/20 04:22:33 drahn Exp $
*/
+/* $OpenBSD: trap.c,v 1.1
4 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: