openrisc_exc.h 688 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * (C) Copyright 2011, Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #ifndef _OPENRISC_EXC_H_
  7. #define _OPENRISC_EXC_H_
  8. #define EXC_RESET 0x01
  9. #define EXC_BUS_ERROR 0x02
  10. #define EXC_DATA_PAGE_FAULT 0x03
  11. #define EXC_INSTR_PAGE_FAULT 0x04
  12. #define EXC_TIMER 0x05
  13. #define EXC_ALIGNMENT 0x06
  14. #define EXC_ILLEGAL_INSTR 0x07
  15. #define EXC_EXT_IRQ 0x08
  16. #define EXC_DTLB_MISS 0x09
  17. #define EXC_ITLB_MISS 0x0a
  18. #define EXC_RANGE 0x0b
  19. #define EXC_SYSCALL 0x0c
  20. #define EXC_FLOAT_POINT 0x0d
  21. #define EXC_TRAP 0x0e
  22. void exception_install_handler(int exception, void (*handler)(void));
  23. void exception_free_handler(int exception);
  24. #endif