Kernel supports up to 64 IRQs

- enough for 2 io apics (usually with 24 pins)
This commit is contained in:
Tomas Hruby 2010-09-02 15:43:54 +00:00
parent 45badf4c05
commit 344e9221ec
3 changed files with 9 additions and 1 deletions

View file

@ -35,7 +35,11 @@
#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 */

View file

@ -182,7 +182,7 @@ struct kmessages {
#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;

View file

@ -57,7 +57,11 @@
* 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. */