- Always use 256 IDT entries since it is now a runtime decison as to how
many entries we use. - Add a constant IDT_IO_INTS for the first IDT entry used for device interrupts.
This commit is contained in:
parent
e14243fac7
commit
5b02e68554
@ -173,11 +173,7 @@ struct region_descriptor {
|
|||||||
* Size of IDT table
|
* Size of IDT table
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(SMP) || defined(APIC_IO)
|
#define NIDT 256 /* 32 reserved, 0x80 syscall, most are h/w */
|
||||||
#define NIDT 256 /* we use them all */
|
|
||||||
#else
|
|
||||||
#define NIDT 129 /* 32 reserved, 16 h/w, 0 s/w, linux's 0x80 */
|
|
||||||
#endif /* SMP || APIC_IO */
|
|
||||||
#define NRSVIDT 32 /* reserved entries for cpu exceptions */
|
#define NRSVIDT 32 /* reserved entries for cpu exceptions */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -202,6 +198,7 @@ struct region_descriptor {
|
|||||||
#define IDT_AC 17 /* #AC: Alignment Check */
|
#define IDT_AC 17 /* #AC: Alignment Check */
|
||||||
#define IDT_MC 18 /* #MC: Machine Check */
|
#define IDT_MC 18 /* #MC: Machine Check */
|
||||||
#define IDT_XF 19 /* #XF: SIMD Floating-Point Exception */
|
#define IDT_XF 19 /* #XF: SIMD Floating-Point Exception */
|
||||||
|
#define IDT_IO_INTS NRSVIDT /* Base of IDT entries for I/O interrupts. */
|
||||||
#define IDT_SYSCALL 0x80 /* System Call Interrupt Vector */
|
#define IDT_SYSCALL 0x80 /* System Call Interrupt Vector */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user