artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f7a839
)
Run handlers with interrupts enabled.
author
kettenis
<kettenis@openbsd.org>
Thu, 13 May 2021 09:32:00 +0000
(09:32 +0000)
committer
kettenis
<kettenis@openbsd.org>
Thu, 13 May 2021 09:32:00 +0000
(09:32 +0000)
ok jsg@
sys/arch/riscv64/dev/plic.c
patch
|
blob
|
history
diff --git
a/sys/arch/riscv64/dev/plic.c
b/sys/arch/riscv64/dev/plic.c
index
2bfede5
..
29985fb
100644
(file)
--- a/
sys/arch/riscv64/dev/plic.c
+++ b/
sys/arch/riscv64/dev/plic.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: plic.c,v 1.
4 2021/05/12 01:20:52 jsg Exp $
*/
+/* $OpenBSD: plic.c,v 1.
5 2021/05/13 09:32:00 kettenis Exp $
*/
/*
* Copyright (c) 2020, Mars Li <mengshi.li.mars@gmail.com>
@@
-383,10
+383,9
@@
plic_irq_dispatch(uint32_t irq, void *frame)
else
arg = frame;
-// comment for now, ?!
-// enable_interrupts(); //XXX allow preemption?
+ intr_enable();
handled = ih->ih_func(arg);
-
// disable_interrupts
();
+
intr_disable
();
if (handled)
ih->ih_count.ec_count++;