From 91956258d42d3179ec7968b2a84bf4d5768c5fe9 Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sun, 1 Oct 2023 04:58:04 +0000 Subject: com/lpr: Handle masking of interrupts in the driver Message-Id: <20231001045755.95707-1-damien@zamaudio.com> --- i386/i386at/autoconf.c | 6 ++++++ i386/i386at/model_dep.c | 8 -------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/i386/i386at/autoconf.c b/i386/i386at/autoconf.c index ef813d92..5c69988f 100644 --- a/i386/i386at/autoconf.c +++ b/i386/i386at/autoconf.c @@ -29,6 +29,11 @@ #include #include #include +#ifdef APIC +# include +#else +# include +#endif #include /* initialization typecasts */ @@ -140,4 +145,5 @@ void take_dev_irq( while (1); } + unmask_irq(pic); } diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c index d835999d..d4bfe6f5 100644 --- a/i386/i386at/model_dep.c +++ b/i386/i386at/model_dep.c @@ -169,14 +169,6 @@ void machine_init(void) #endif clkstart(); -#if defined(APIC) -#warning FIXME: Rather unmask them from their respective drivers - /* com0 */ - unmask_irq(4); - /* com1 */ - unmask_irq(3); -#endif - #ifdef LINUX_DEV /* * Initialize Linux drivers. -- cgit v1.2.3