Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108368473
D26694.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
788 B
Referenced Files
None
Subscribers
None
D26694.diff
View Options
Index: head/sys/riscv/riscv/intr_machdep.c
===================================================================
--- head/sys/riscv/riscv/intr_machdep.c
+++ head/sys/riscv/riscv/intr_machdep.c
@@ -158,8 +158,6 @@
struct intr_irqsrc *isrc;
int active_irq;
- critical_enter();
-
KASSERT(frame->tf_scause & EXCP_INTR,
("riscv_cpu_intr: wrong frame passed"));
@@ -169,18 +167,16 @@
case IRQ_SOFTWARE_USER:
case IRQ_SOFTWARE_SUPERVISOR:
case IRQ_TIMER_SUPERVISOR:
+ critical_enter();
isrc = &isrcs[active_irq].isrc;
if (intr_isrc_dispatch(isrc, frame) != 0)
printf("stray interrupt %d\n", active_irq);
+ critical_exit();
break;
case IRQ_EXTERNAL_SUPERVISOR:
intr_irq_handler(frame);
break;
- default:
- break;
}
-
- critical_exit();
}
#ifdef SMP
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 25, 5:28 AM (20 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16126321
Default Alt Text
D26694.diff (788 B)
Attached To
Mode
D26694: Don't use critical section when calling intr_irq_handler()
Attached
Detach File
Event Timeline
Log In to Comment