MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_hw_exception_init

Function rt_hw_exception_init

libcpu/mips/common/exception.c:148–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148int rt_hw_exception_init(void)
149{
150 rt_ubase_t ebase = (rt_ubase_t)&__ebase_entry;
151#ifdef ARCH_MIPS64
152 ebase |= 0xffffffff00000000;
153#endif
154 write_c0_ebase(ebase);
155 clear_c0_status(ST0_BEV | ST0_ERL | ST0_EXL);
156 clear_c0_status(ST0_IM | ST0_IE);
157 set_c0_status(ST0_CU0);
158 /* install the default exception handler */
159 install_default_exception_handler();
160
161 return RT_EOK;
162}
163
164void rt_general_exc_dispatch(struct pt_regs *regs)
165{

Callers 4

rt_hw_board_initFunction · 0.85
rt_hw_board_initFunction · 0.85
rt_hw_board_initFunction · 0.85
rt_hw_board_initFunction · 0.85

Calls 1

Tested by

no test coverage detected