| 146 | } |
| 147 | |
| 148 | int 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 | |
| 164 | void rt_general_exc_dispatch(struct pt_regs *regs) |
| 165 | { |
no test coverage detected