mips_excpt.h 609 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2016-9-7 Urey the first version
  9. */
  10. #ifndef _MIPS_EXCPT_H_
  11. #define _MIPS_EXCPT_H_
  12. #include "mips_regs.h"
  13. #ifndef __ASSEMBLY__
  14. typedef void (* exception_func_t)(mips_reg_ctx *regs);
  15. //extern exception_func_t mips_exception_handlers[];
  16. int rt_hw_exception_init(void);
  17. exception_func_t rt_set_except_vector(int n, exception_func_t func);
  18. void install_default_execpt_handle(void);
  19. #endif /* __ASSEMBLY__ */
  20. #endif /* _MIPS_EXCPT_H_ */