traps.h 439 B

123456789101112131415
  1. // These are arbitrarily chosen, but with care not to overlap
  2. // processor defined exceptions or interrupt vectors.
  3. #define T_SYSCALL 64 // system call
  4. #define T_DEFAULT 500 // catchall
  5. #define T_IRQ0 32 // IRQ 0 corresponds to int T_IRQ
  6. #define IRQ_TIMER 0
  7. #define IRQ_KBD 1
  8. #define IRQ_COM1 4
  9. #define IRQ_IDE 14
  10. #define IRQ_ERROR 19
  11. #define IRQ_SPURIOUS 31