traps.h 623 B

123456789101112131415161718192021
  1. /*****************************************************************
  2. * traps.h
  3. * by Zhiyi Huang, [email protected]
  4. * University of Otago
  5. *
  6. ********************************************************************/
  7. // These are arbitrarily chosen, but with care not to overlap
  8. // processor defined exceptions or interrupt vectors.
  9. #define T_SYSCALL 0x40 // system call
  10. #define T_IRQ 0x80 // interrupt
  11. #define T_UND 0x01 // undefined instruction
  12. #define T_PABT 0x02 // prefetch abort
  13. #define T_DABT 0x04 // data abort
  14. #define IRQ_TIMER3 3
  15. #define IRQ_MINIUART 29
  16. #define INT_REGS_BASE (DEVSPACE+0xB200)