diff options
author | jhb <jhb@FreeBSD.org> | 2003-11-03 21:12:04 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-11-03 21:12:04 +0000 |
commit | 7ed7a0db1d37a705369625b8aef99f802fefbba3 (patch) | |
tree | a35441afd2f9a8a6129e143eda942c60a36a442c | |
parent | 6ad174af9d3130ef6cda09c3c12809951632e588 (diff) | |
download | FreeBSD-src-7ed7a0db1d37a705369625b8aef99f802fefbba3.zip FreeBSD-src-7ed7a0db1d37a705369625b8aef99f802fefbba3.tar.gz |
- 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.
-rw-r--r-- | sys/i386/include/segments.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/i386/include/segments.h b/sys/i386/include/segments.h index 036737c..6ac0a62 100644 --- a/sys/i386/include/segments.h +++ b/sys/i386/include/segments.h @@ -173,11 +173,7 @@ struct region_descriptor { * Size of IDT table */ -#if defined(SMP) || defined(APIC_IO) -#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 NIDT 256 /* 32 reserved, 0x80 syscall, most are h/w */ #define NRSVIDT 32 /* reserved entries for cpu exceptions */ /* @@ -202,6 +198,7 @@ struct region_descriptor { #define IDT_AC 17 /* #AC: Alignment Check */ #define IDT_MC 18 /* #MC: Machine Check */ #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 */ /* |