diff options
author | peter <peter@FreeBSD.org> | 2003-09-22 22:09:02 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-09-22 22:09:02 +0000 |
commit | 724da5f1117ddad235c7b38cbbe904a81c90bec2 (patch) | |
tree | 4a3425aa0235d810deb4d608a091ddc5209fed87 /sys/amd64/include/segments.h | |
parent | 202f4eece1c4620798a768857dd94e475d44a899 (diff) | |
download | FreeBSD-src-724da5f1117ddad235c7b38cbbe904a81c90bec2.zip FreeBSD-src-724da5f1117ddad235c7b38cbbe904a81c90bec2.tar.gz |
MFi386 by jhb: use symbolic constants for the IDT entries.
Diffstat (limited to 'sys/amd64/include/segments.h')
-rw-r--r-- | sys/amd64/include/segments.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys/amd64/include/segments.h b/sys/amd64/include/segments.h index 919eeff..d924eb3 100644 --- a/sys/amd64/include/segments.h +++ b/sys/amd64/include/segments.h @@ -170,6 +170,30 @@ struct region_descriptor { #define NRSVIDT 32 /* reserved entries for cpu exceptions */ /* + * Entries in the Interrupt Descriptor Table (IDT) + */ +#define IDT_DE 0 /* #DE: Divide Error */ +#define IDT_DB 1 /* #DB: Debug */ +#define IDT_NMI 2 /* Nonmaskable External Interrupt */ +#define IDT_BP 3 /* #BP: Breakpoint */ +#define IDT_OF 4 /* #OF: Overflow */ +#define IDT_BR 5 /* #BR: Bound Range Exceeded */ +#define IDT_UD 6 /* #UD: Undefined/Invalid Opcode */ +#define IDT_NM 7 /* #NM: No Math Coprocessor */ +#define IDT_DF 8 /* #DF: Double Fault */ +#define IDT_FPUGP 9 /* Coprocessor Segment Overrun */ +#define IDT_TS 10 /* #TS: Invalid TSS */ +#define IDT_NP 11 /* #NP: Segment Not Present */ +#define IDT_SS 12 /* #SS: Stack Segment Fault */ +#define IDT_GP 13 /* #GP: General Protection Fault */ +#define IDT_PF 14 /* #PF: Page Fault */ +#define IDT_MF 16 /* #MF: FPU Floating-Point Error */ +#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_SYSCALL 0x80 /* System Call Interrupt Vector */ + +/* * Entries in the Global Descriptor Table (GDT) */ #define GNULL_SEL 0 /* Null Descriptor */ |