os_except.h 863 B

1234567891011121314151617181920212223
  1. #ifndef __OS_EXCEPT_H__
  2. #define __OS_EXCEPT_H__
  3. /***********************************
  4. TYPES OF GENERAL EXCEPTION
  5. ***********************************/
  6. #define GE_ALIGN_CHECK 0
  7. #define GE_RESERVED_INST 1
  8. #define GE_TRAP 2
  9. #define GE_ARITHMETIC 3
  10. #define GE_PRECISE_BUS_ERR 4
  11. #define GE_INPRECISE_BUS_ERR 5
  12. #define GE_COPROCESSOR 6
  13. #define GE_PRIVILEGE_INST 7
  14. #define GE_RESERVED_VALUE 8
  15. #define GE_NON_EXIST_LOCAL_MEM 9
  16. #define GE_MPZIU_CTRL 10
  17. void *General_Exception_Handler_Table[16];
  18. inline void register_exception_handler(int genneral_except_num, void (*handler)(unsigned int ipc));
  19. #endif