2006-06-15 18:02:20 +02:00
|
|
|
// system defined:
|
2006-09-06 19:04:06 +02:00
|
|
|
#define T_DIVIDE 0 // divide error
|
|
|
|
#define T_DEBUG 1 // debug exception
|
|
|
|
#define T_NMI 2 // non-maskable interrupt
|
|
|
|
#define T_BRKPT 3 // breakpoint
|
|
|
|
#define T_OFLOW 4 // overflow
|
|
|
|
#define T_BOUND 5 // bounds check
|
|
|
|
#define T_ILLOP 6 // illegal opcode
|
2006-09-06 19:27:19 +02:00
|
|
|
#define T_DEVICE 7 // device not available
|
2006-09-06 19:04:06 +02:00
|
|
|
#define T_DBLFLT 8 // double fault
|
2006-09-06 19:50:20 +02:00
|
|
|
// #define T_COPROC 9 // reserved (not generated by recent processors)
|
2006-09-06 19:04:06 +02:00
|
|
|
#define T_TSS 10 // invalid task switch segment
|
|
|
|
#define T_SEGNP 11 // segment not present
|
|
|
|
#define T_STACK 12 // stack exception
|
|
|
|
#define T_GPFLT 13 // genernal protection fault
|
|
|
|
#define T_PGFLT 14 // page fault
|
2006-09-06 19:50:20 +02:00
|
|
|
// #define T_RES 15 // reserved
|
2006-09-06 19:04:06 +02:00
|
|
|
#define T_FPERR 16 // floating point error
|
|
|
|
#define T_ALIGN 17 // aligment check
|
|
|
|
#define T_MCHK 18 // machine check
|
|
|
|
#define T_SIMDERR 19 // SIMD floating point error
|
2006-06-15 18:02:20 +02:00
|
|
|
|
|
|
|
// These are arbitrarily chosen, but with care not to overlap
|
|
|
|
// processor defined exceptions or interrupt vectors.
|
2006-09-06 19:04:06 +02:00
|
|
|
#define T_SYSCALL 48 // system call
|
|
|
|
#define T_DEFAULT 500 // catchall
|
2006-06-28 18:35:03 +02:00
|
|
|
|
2006-09-06 19:50:20 +02:00
|
|
|
#define IRQ_OFFSET 32 // IRQ 0 corresponds to int IRQ_OFFSET
|
2006-06-28 18:35:03 +02:00
|
|
|
|
2006-09-06 19:04:06 +02:00
|
|
|
#define IRQ_KBD 1
|
2006-09-03 17:39:29 +02:00
|
|
|
#define IRQ_IDE 14
|
2006-06-28 18:35:03 +02:00
|
|
|
#define IRQ_TIMER 18
|
|
|
|
#define IRQ_ERROR 19
|
|
|
|
#define IRQ_SPURIOUS 31
|