]> Joshua Wise's Git repositories - netwatch.git/blobdiff - netwatch/traps.h
Move aseg-paging to netwatch/
[netwatch.git] / netwatch / traps.h
diff --git a/netwatch/traps.h b/netwatch/traps.h
new file mode 100644 (file)
index 0000000..f57e036
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef TRAPS_H
+#define TRAPS_H
+
+/* Trap vectors from 15-410 basis code. */
+
+#define T_DIVIDE_ERROR          0
+#define T_DEBUG                 1
+#define T_NMI                   2
+#define T_INT3                  3
+#define T_OVERFLOW              4
+#define T_OUT_OF_BOUNDS         5
+#define T_INVALID_OPCODE        6
+#define T_NO_FPU                7
+#define T_DOUBLE_FAULT          8
+#define T_FPU_FAULT             9
+#define T_INVALID_TSS           10
+#define T_SEGMENT_NOT_PRESENT   11
+#define T_STACK_FAULT           12
+#define T_GENERAL_PROTECTION    13
+#define T_PAGE_FAULT            14
+#define T_FLOATING_POINT_ERROR  16
+#define T_ALIGNMENT_CHECK       17
+#define T_MACHINE_CHECK         18
+
+void traps_install(void);
+
+#endif /* TRAPS_H */
This page took 0.022987 seconds and 4 git commands to generate.