PERFORCE change 37970 for review
Peter Wemm
peter at FreeBSD.org
Fri Sep 12 12:13:15 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=37970
Change 37970 by peter at peter_hammer on 2003/09/12 12:12:51
add IDT_* constants. I'm not sure if this was something jhb added or something
that I accidently deleted, or something that I just missed.
Affected files ...
.. //depot/projects/hammer/sys/amd64/include/segments.h#9 edit
Differences ...
==== //depot/projects/hammer/sys/amd64/include/segments.h#9 (text+ko) ====
@@ -170,6 +170,30 @@
#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 */
More information about the p4-projects
mailing list