patch-2.4.19 linux-2.4.19/include/asm-i386/irq.h

Next file: linux-2.4.19/include/asm-i386/mmu_context.h
Previous file: linux-2.4.19/include/asm-i386/ioctls.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/include/asm-i386/irq.h linux-2.4.19/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)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)