rt-thread/libcpu/mips/common/exception.h

29 lines
706 B
C
Raw Normal View History

2013-01-08 21:05:02 +08:00
/*
* Copyright (c) 2006-2019, RT-Thread Development Team
2013-01-08 21:05:02 +08:00
*
* SPDX-License-Identifier: Apache-2.0
2013-01-08 21:05:02 +08:00
*
* Change Logs:
* Date Author Notes
* 2019-12-04 Jiaxun Yang Initial version
2013-01-08 21:05:02 +08:00
*/
2013-01-08 21:05:02 +08:00
#ifndef __EXCEPTION_H__
#define __EXCEPTION_H__
#include "ptrace.h"
2013-01-08 21:05:02 +08:00
#ifndef __ASSEMBLY__
2013-01-08 21:05:02 +08:00
typedef void (* exception_func_t)(struct pt_regs *regs);
2013-01-08 21:05:02 +08:00
extern int rt_hw_exception_init(void);
2013-01-08 21:05:02 +08:00
extern exception_func_t sys_exception_handlers[];
extern void rt_do_mips_cpu_irq(rt_uint32_t ip);
2013-01-08 21:05:02 +08:00
exception_func_t rt_set_except_vector(int n, exception_func_t func);
extern void mips_mask_cpu_irq(rt_uint32_t irq);
extern void mips_unmask_cpu_irq(rt_uint32_t irq);
#endif
2013-01-08 21:05:02 +08:00
#endif /* end of __EXCEPTION_H__ */