diff options
author | Damien Zammit <damien@zamaudio.com> | 2023-10-01 04:58:04 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-10-01 10:45:47 +0200 |
commit | 91956258d42d3179ec7968b2a84bf4d5768c5fe9 (patch) | |
tree | 6e1f2808ffa9b5500b2ce0f3d8364ad848e69c8b | |
parent | a670a4f8c649f31f0acf8d5e8fee5f5393227f34 (diff) | |
download | gnumach-91956258d42d3179ec7968b2a84bf4d5768c5fe9.tar.gz gnumach-91956258d42d3179ec7968b2a84bf4d5768c5fe9.tar.bz2 gnumach-91956258d42d3179ec7968b2a84bf4d5768c5fe9.zip |
com/lpr: Handle masking of interrupts in the driver
Message-Id: <20231001045755.95707-1-damien@zamaudio.com>
-rw-r--r-- | i386/i386at/autoconf.c | 6 | ||||
-rw-r--r-- | 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 <i386at/autoconf.h> #include <i386/irq.h> #include <i386/ipl.h> +#ifdef APIC +# include <i386/apic.h> +#else +# include <i386/pic.h> +#endif #include <chips/busses.h> /* 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. |