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  * 2019-12-04     Jiaxun Yang  Initial version
9  */
10 
11 #ifndef __EXCEPTION_H__
12 #define __EXCEPTION_H__
13 
14 #include "ptrace.h"
15 
16 #ifndef __ASSEMBLY__
17 
18 typedef void (* exception_func_t)(struct pt_regs *regs);
19 
20 extern int rt_hw_exception_init(void);
21 extern exception_func_t sys_exception_handlers[];
22 extern void rt_do_mips_cpu_irq(rt_uint32_t ip);
23 exception_func_t rt_set_except_vector(int n, exception_func_t func);
24 extern void mips_mask_cpu_irq(rt_uint32_t irq);
25 extern void mips_unmask_cpu_irq(rt_uint32_t irq);
26 #endif
27 
28 #endif /* end of __EXCEPTION_H__ */
29