summaryrefslogtreecommitdiff
path: root/libcpu/mips/common/mips_excpt.h
blob: 4c4362d749cffd1fd0bbf78a62799b834696e420 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2016-9-7       Urey         the first version
 */

#ifndef _MIPS_EXCPT_H_
#define _MIPS_EXCPT_H_

#include "mips_regs.h"

#ifndef __ASSEMBLY__
typedef void (* exception_func_t)(mips_reg_ctx *regs);

//extern exception_func_t mips_exception_handlers[];

int rt_hw_exception_init(void);
exception_func_t rt_set_except_vector(int n, exception_func_t func);
void install_default_execpt_handle(void);
#endif /* __ASSEMBLY__ */
#endif /* _MIPS_EXCPT_H_ */