xref: /nrf52832-nimble/rt-thread/libcpu/mips/common/mips_excpt.h (revision 104654410c56c573564690304ae786df310c91fc)
1*10465441SEvalZero /*
2*10465441SEvalZero  * File      : mips_excpt.h
3*10465441SEvalZero  * This file is part of RT-Thread RTOS
4*10465441SEvalZero  * COPYRIGHT (C) 2008 - 2012, RT-Thread Development Team
5*10465441SEvalZero  *
6*10465441SEvalZero  *  This program is free software; you can redistribute it and/or modify
7*10465441SEvalZero  *  it under the terms of the GNU General Public License as published by
8*10465441SEvalZero  *  the Free Software Foundation; either version 2 of the License, or
9*10465441SEvalZero  *  (at your option) any later version.
10*10465441SEvalZero  *
11*10465441SEvalZero  *  This program is distributed in the hope that it will be useful,
12*10465441SEvalZero  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13*10465441SEvalZero  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14*10465441SEvalZero  *  GNU General Public License for more details.
15*10465441SEvalZero  *
16*10465441SEvalZero  *  You should have received a copy of the GNU General Public License along
17*10465441SEvalZero  *  with this program; if not, write to the Free Software Foundation, Inc.,
18*10465441SEvalZero  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19*10465441SEvalZero  *
20*10465441SEvalZero  * Change Logs:
21*10465441SEvalZero  * Date           Author       Notes
22*10465441SEvalZero  * 2016��9��7��     Urey         the first version
23*10465441SEvalZero  */
24*10465441SEvalZero 
25*10465441SEvalZero #ifndef _MIPS_EXCPT_H_
26*10465441SEvalZero #define _MIPS_EXCPT_H_
27*10465441SEvalZero 
28*10465441SEvalZero #include "mips_regs.h"
29*10465441SEvalZero 
30*10465441SEvalZero #ifndef __ASSEMBLY__
31*10465441SEvalZero typedef void (* exception_func_t)(mips_reg_ctx *regs);
32*10465441SEvalZero 
33*10465441SEvalZero //extern exception_func_t mips_exception_handlers[];
34*10465441SEvalZero 
35*10465441SEvalZero int rt_hw_exception_init(void);
36*10465441SEvalZero exception_func_t rt_set_except_vector(int n, exception_func_t func);
37*10465441SEvalZero void install_default_execpt_handle(void);
38*10465441SEvalZero #endif /* __ASSEMBLY__ */
39*10465441SEvalZero #endif /* _MIPS_EXCPT_H_ */
40