From be5fc736d7470ee9c7d1f6e5cd245c1279404f1e Mon Sep 17 00:00:00 2001 From: Brian Gerst Date: Thu, 14 Mar 2002 23:15:55 -0800 Subject: [PATCH] [PATCH] Fix NR_IRQS when no IO apic NR_IRQS should be 16 when the IO apic is not configured, as the 8259 PIC cannot generate any more interrupts. It also fixes a bug where the IDT gets populated with random addresses, since only 16 entry stubs are created. --- include/asm-i386/irq.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/asm-i386/irq.h b/include/asm-i386/irq.h index c0d2b88b6ff0..c1bcd739bc7b 100644 --- a/include/asm-i386/irq.h +++ b/include/asm-i386/irq.h @@ -23,7 +23,11 @@ * Since vectors 0x00-0x1f are used/reserved for the CPU, * the usable vector space is 0x20-0xff (224 vectors) */ +#ifdef CONFIG_X86_IO_APIC #define NR_IRQS 224 +#else +#define NR_IRQS 16 +#endif static __inline__ int irq_cannonicalize(int irq) { -- 2.39.5