From 305c9dcf20c06b07183a09131225248be80cfb8a Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 5 Apr 2021 15:25:18 +0200 Subject: apic: Also unmask irq 3 and 4 early We unmasked by hand kd's irq 1, but com0/1 also need unmasking. More generally we should unmask irqs as appropriate. * i386/i386at/model_dep.c (machine_init): Unmask irq 3 and 4. --- i386/i386at/model_dep.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c index f83d24cb..21a36bf2 100644 --- a/i386/i386at/model_dep.c +++ b/i386/i386at/model_dep.c @@ -174,7 +174,14 @@ void machine_init(void) smp_init(); ioapic_configure(); lapic_enable_timer(); + +#warning FIXME: Rather unmask them from their respective drivers + /* kd */ unmask_irq(1); + /* com0 */ + unmask_irq(4); + /* com1 */ + unmask_irq(3); #endif /* NCPUS > 1 */ #ifdef LINUX_DEV -- cgit v1.2.3