Lines Matching full:n
88 rt_kprintf("tlb modification exception\n"); in mod_handler()
89 rt_kprintf("exception happens, epc: 0x%08x\n", read_c0_epc()); in mod_handler()
90 rt_kprintf(" cause: 0x%08x\n", read_c0_cause()); in mod_handler()
94 printf("-----------------------------------------------------\n"); in mod_handler()
95 printf("BACKTRACE:\n"); in mod_handler()
97 printf("-----------------------------------------------------\n"); in mod_handler()
104 rt_kprintf("tlb exception: load\n"); in tlbl_handler()
105 rt_kprintf("exception happens, epc: 0x%08x\n", read_c0_epc()); in tlbl_handler()
106 rt_kprintf(" cause: 0x%08x\n", read_c0_cause()); in tlbl_handler()
110 printf("-----------------------------------------------------\n"); in tlbl_handler()
111 printf("BACKTRACE:\n"); in tlbl_handler()
113 printf("-----------------------------------------------------\n"); in tlbl_handler()
120 rt_kprintf("tlb exception: store\n"); in tlbs_handler()
121 rt_kprintf("exception happens, epc: 0x%08x\n", read_c0_epc()); in tlbs_handler()
122 rt_kprintf(" cause: 0x%08x\n", read_c0_cause()); in tlbs_handler()
126 printf("-----------------------------------------------------\n"); in tlbs_handler()
127 printf("BACKTRACE:\n"); in tlbs_handler()
129 printf("-----------------------------------------------------\n"); in tlbs_handler()
136 rt_kprintf("address error exception: load\n"); in adel_handler()
137 rt_kprintf("exception happens, epc: 0x%08x\n", read_c0_epc()); in adel_handler()
138 rt_kprintf(" cause: 0x%08x\n", read_c0_cause()); in adel_handler()
141 rt_kprintf("current thread: %.*s\n", RT_NAME_MAX, rt_thread_self()->name); in adel_handler()
143 printf("-----------------------------------------------------\n"); in adel_handler()
144 printf("BACKTRACE:\n"); in adel_handler()
146 printf("-----------------------------------------------------\n"); in adel_handler()
153 rt_kprintf("address error exception: store\n"); in ades_handler()
154 rt_kprintf("exception happens, epc: 0x%08x\n", read_c0_epc()); in ades_handler()
155 rt_kprintf(" cause: 0x%08x\n", read_c0_cause()); in ades_handler()
159 printf("-----------------------------------------------------\n"); in ades_handler()
160 printf("BACKTRACE:\n"); in ades_handler()
162 printf("-----------------------------------------------------\n"); in ades_handler()
169 rt_kprintf("floating point exception\n"); in fpe_handler()
170 rt_kprintf("exception happens, epc: 0x%08x\n", read_c0_epc()); in fpe_handler()
171 rt_kprintf(" cause: 0x%08x\n", read_c0_cause()); in fpe_handler()
175 printf("-----------------------------------------------------\n"); in fpe_handler()
176 printf("BACKTRACE:\n"); in fpe_handler()
178 printf("-----------------------------------------------------\n"); in fpe_handler()
190 rt_kprintf("exception happens, epc: 0x%08x\n", regs->CP0EPC); in unhandled_exception_handle()
191 rt_kprintf(" cause: 0x%08x\n", regs->CP0Cause); in unhandled_exception_handle()
196 printf("\n"); in unhandled_exception_handle()
199 printf("\n"); in unhandled_exception_handle()
231 exception_func_t rt_set_except_vector(int n, exception_func_t func) in rt_set_except_vector() argument
233 exception_func_t old_handler = sys_exception_handlers[n]; in rt_set_except_vector()
235 if ((n == 0) || (n > 32) || (!func)) in rt_set_except_vector()
240 sys_exception_handlers[n] = func; in rt_set_except_vector()
255 printf("ERROR: read epc fail when except handle\n"); in mips_exception_handler()
268 printf("-----------------------------------------------------\n"); in mips_exception_handler()
271 printf("%08x:\t%08x\n", in mips_exception_handler()
277 printf("%08x:\t%08x\n", in mips_exception_handler()
281 printf("-----------------------------------------------------\n"); in mips_exception_handler()
287 printf("-----------------------------------------------------\n"); in mips_exception_handler()
290 printf("CAUSE=%08x --> %s\n", cause, cause_strings[exc]); in mips_exception_handler()
291 printf("EPC=%08x\n", epc); in mips_exception_handler()
296 printf("\n"); in mips_exception_handler()
299 printf("\n-----------------------------------------------------\n"); in mips_exception_handler()
300 printf("%s: \t %8x\n","CP0Status ", ctx->CP0Status); in mips_exception_handler()
301 printf("%s: \t %8x\n","CP0DataHI ", ctx->CP0DataHI); in mips_exception_handler()
302 printf("%s: \t %8x\n","CP0DataLO ", ctx->CP0DataLO); in mips_exception_handler()
303 printf("%s: \t %8x\n","CP0BadVAddr", ctx->CP0BadVAddr); in mips_exception_handler()
304 printf("%s: \t %8x\n","CP0Cause ", ctx->CP0Cause); in mips_exception_handler()
305 printf("%s: \t %8x\n","CP0EPC ", ctx->CP0EPC); in mips_exception_handler()
306 printf("-----------------------------------------------------\n"); in mips_exception_handler()
357 rt_kprintf("Unknow exception: %d\r\n", exc); in mips_exception_handler()
370 rt_kprintf("cache exception happens, epc: 0x%08x\n", read_c0_epc()); in mips_cache_error_handler()
377 rt_kprintf("tlb-miss happens, epc: 0x%08x\n", read_c0_epc()); in mips_tlb_refill_handler()
378 rt_kprintf(" cause: 0x%08x\n", read_c0_cause()); in mips_tlb_refill_handler()
380 rt_kprintf("current thread: %s\n", rt_thread_self()->name); in mips_tlb_refill_handler()