public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix NR_IRQS when no IO apic
@ 2002-01-28  0:27 Brian Gerst
  2002-01-28  0:42 ` Jeff Garzik
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Gerst @ 2002-01-28  0:27 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Linux kernel mailing list

[-- Attachment #1: Type: text/plain, Size: 245 bytes --]

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.

-- 

						Brian Gerst

[-- Attachment #2: nrirqs-1 --]
[-- Type: text/plain, Size: 483 bytes --]

diff -urN linux-2.5.3-pre5/include/asm-i386/irq.h linux/include/asm-i386/irq.h
--- linux-2.5.3-pre5/include/asm-i386/irq.h	Fri Jan 25 02:25:47 2002
+++ linux/include/asm-i386/irq.h	Fri Jan 25 11:30:44 2002
@@ -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)
 {


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-01-28  1:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-28  0:27 [PATCH] Fix NR_IRQS when no IO apic Brian Gerst
2002-01-28  0:42 ` Jeff Garzik
2002-01-28  0:51   ` Brian Gerst
2002-01-28  1:07   ` Robert Love

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox