Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164702617
D669.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
656 B
Referenced Files
None
Subscribers
None
D669.diff
View Options
Index: sys/amd64/vmm/io/vatpic.c
===================================================================
--- sys/amd64/vmm/io/vatpic.c
+++ sys/amd64/vmm/io/vatpic.c
@@ -500,13 +500,19 @@
VATPIC_LOCK(vatpic);
pin = vatpic_get_highest_irrpin(atpic);
- if (pin == -1)
- pin = 7;
if (pin == 2) {
atpic = &vatpic->atpic[1];
pin = vatpic_get_highest_irrpin(atpic);
}
+ /*
+ * If there are no pins active at this moment then return the spurious
+ * interrupt vector instead.
+ */
+ if (pin == -1)
+ pin = 7;
+
+ KASSERT(pin >= 0 && pin <= 7, ("%s: invalid pin %d", __func__, pin));
*vecptr = atpic->irq_base + pin;
VATPIC_UNLOCK(vatpic);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 4, 6:31 AM (19 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35945462
Default Alt Text
D669.diff (656 B)
Attached To
Mode
D669: Return the spurious interrupt vector (IRQ7 or IRQ15) if the atpic cannot find any unmasked pin with an interrupt asserted.
Attached
Detach File
Event Timeline
Log In to Comment