#include <oskit/x86/trap.h>
XXXThis contains the definitions for the trap numbers returned by the processor when something goes `wrong'. These can be used to determine the cause of the trap.
- T_DIVIDE_ERROR
- T_DEBUG
- T_NMI
- non-maskable interrupt
- T_INT3
- T_OVERFLOW
- overflow test
- T_OUT_OF_BOUNDS
- bounds check
- T_INVALID_OPCODE
- T_NO_FPU
- T_DOUBLE_FAULT
- T_FPU_FAULT
- T_INVALID_TSS
- T_SEGMENT_NOT_PRESENT
- T_STACK_FAULT
- T_GENERAL_PROTECTION
- T_PAGE_FAULT
- T_PF_PROT: protection violation; T_PF_WRITE: write access; T_PF_USER: from user state
- T_FLOATING_POINT_ERROR
- T_ALIGNMENT_CHECK
- T_MACHINE_CHECK
This header file is taken from CMU's Mach kernel.