Kernel supports up to 64 IRQs
- enough for 2 io apics (usually with 24 pins)
This commit is contained in:
parent
45badf4c05
commit
344e9221ec
3 changed files with 9 additions and 1 deletions
|
@ -35,7 +35,11 @@
|
||||||
#define IRQ8_VECTOR 0x70 /* no need to move IRQ8-15 */
|
#define IRQ8_VECTOR 0x70 /* no need to move IRQ8-15 */
|
||||||
|
|
||||||
/* Hardware interrupt numbers. */
|
/* Hardware interrupt numbers. */
|
||||||
|
#ifndef CONFIG_APIC
|
||||||
#define NR_IRQ_VECTORS 16
|
#define NR_IRQ_VECTORS 16
|
||||||
|
#else
|
||||||
|
#define NR_IRQ_VECTORS 64
|
||||||
|
#endif
|
||||||
#define CLOCK_IRQ 0
|
#define CLOCK_IRQ 0
|
||||||
#define KEYBOARD_IRQ 1
|
#define KEYBOARD_IRQ 1
|
||||||
#define CASCADE_IRQ 2 /* cascade enable for 2nd AT controller */
|
#define CASCADE_IRQ 2 /* cascade enable for 2nd AT controller */
|
||||||
|
|
|
@ -182,7 +182,7 @@ struct kmessages {
|
||||||
#include <machine/interrupt.h>
|
#include <machine/interrupt.h>
|
||||||
|
|
||||||
/* randomness struct: random sources after interrupts: */
|
/* randomness struct: random sources after interrupts: */
|
||||||
#define RANDOM_SOURCES NR_IRQ_VECTORS
|
#define RANDOM_SOURCES 16
|
||||||
#define RANDOM_ELEMENTS 64
|
#define RANDOM_ELEMENTS 64
|
||||||
|
|
||||||
typedef unsigned short rand_t;
|
typedef unsigned short rand_t;
|
||||||
|
|
|
@ -57,7 +57,11 @@
|
||||||
* the maximum needed by any given driver. The number of interrupt hooks may
|
* the maximum needed by any given driver. The number of interrupt hooks may
|
||||||
* be incremented on systems with many device drivers.
|
* be incremented on systems with many device drivers.
|
||||||
*/
|
*/
|
||||||
|
#ifndef CONFIG_APIC
|
||||||
#define NR_IRQ_HOOKS 16 /* number of interrupt hooks */
|
#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 */
|
#define VDEVIO_BUF_SIZE 64 /* max elements per VDEVIO request */
|
||||||
|
|
||||||
/* How many bytes for the kernel stack. Space allocated in mpx.s. */
|
/* How many bytes for the kernel stack. Space allocated in mpx.s. */
|
||||||
|
|
Loading…
Reference in a new issue