[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/4] ioapic: target first processor for interrupts
From: |
Damien Zammit |
Subject: |
[PATCH 2/4] ioapic: target first processor for interrupts |
Date: |
Mon, 5 Apr 2021 15:29:14 +1000 |
---
i386/i386at/ioapic.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/i386/i386at/ioapic.c b/i386/i386at/ioapic.c
index 16836016..38d1b43c 100644
--- a/i386/i386at/ioapic.c
+++ b/i386/i386at/ioapic.c
@@ -368,8 +368,9 @@ ioapic_configure(void)
}
/* Start the IO APIC receiving interrupts */
+ lapic->apic_id.r = apic_get_cpu_apic_id(bsp);
lapic->dest_format.r = 0xffffffff; /* flat model */
- lapic->logical_dest.r = 0x00000000; /* default, but we use physical
*/
+ lapic->logical_dest.r = 0x01000000; /* target bsp */
lapic->lvt_timer.r = LAPIC_DISABLE;
lapic->lvt_performance_monitor.r = LAPIC_NMI;
lapic->lvt_lint0.r = LAPIC_DISABLE;
--
2.30.1