- enough for 2 io apics (usually with 24 pins)
#define IRQ8_VECTOR 0x70 /* no need to move IRQ8-15 */
/* Hardware interrupt numbers. */
+#ifndef CONFIG_APIC
#define NR_IRQ_VECTORS 16
+#else
+#define NR_IRQ_VECTORS 64
+#endif
#define CLOCK_IRQ 0
#define KEYBOARD_IRQ 1
#define CASCADE_IRQ 2 /* cascade enable for 2nd AT controller */
#include <machine/interrupt.h>
/* randomness struct: random sources after interrupts: */
-#define RANDOM_SOURCES NR_IRQ_VECTORS
+#define RANDOM_SOURCES 16
#define RANDOM_ELEMENTS 64
typedef unsigned short rand_t;
* the maximum needed by any given driver. The number of interrupt hooks may
* be incremented on systems with many device drivers.
*/
+#ifndef CONFIG_APIC
#define NR_IRQ_HOOKS 16 /* number of interrupt hooks */
+#else
+#define NR_IRQ_HOOKS 64 /* number of interrupt hooks */
+#endif
#define VDEVIO_BUF_SIZE 64 /* max elements per VDEVIO request */
/* How many bytes for the kernel stack. Space allocated in mpx.s. */