diff options
| author | bigmagic <[email protected]> | 2020-09-04 11:57:35 +0800 |
|---|---|---|
| committer | bigmagic <[email protected]> | 2020-09-04 11:57:35 +0800 |
| commit | c66314a8b6a12412e34440e8369d9c77d43aaada (patch) | |
| tree | 1da17fdd43ea488ff1f3cf53aef76bba64987b59 /libcpu/mips/common/exception.c | |
| parent | e5a70d532b6742e196e7b2da28f1b9e89670672d (diff) | |
fixed loongson bsp build on windows
Diffstat (limited to 'libcpu/mips/common/exception.c')
| -rw-r--r-- | libcpu/mips/common/exception.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcpu/mips/common/exception.c b/libcpu/mips/common/exception.c index 8eb89b1e1b..94be475878 100644 --- a/libcpu/mips/common/exception.c +++ b/libcpu/mips/common/exception.c @@ -124,7 +124,11 @@ static void unhandled_exception_handle(struct pt_regs *regs) { rt_kprintf("Unknown Exception, EPC: 0x%p, CAUSE: 0x%08x\n", read_c0_epc(), read_c0_cause()); rt_kprintf("Exception Name:%s\n",exception_name[(read_c0_cause() >> 2) & 0x1f]); +#ifdef SOC_LS2K1000 rt_kprintf("ExeCode = 0x%08x,BadAddr = 0x%p\n",(read_c0_cause() >> 2) & 0x1f,mmu_tlb_get_bad_vaddr()); +#else + rt_kprintf("ExeCode = 0x%08x\n",(read_c0_cause() >> 2) & 0x1f); +#endif rt_kprintf("ST0: 0x%08x ",regs->cp0_status); rt_kprintf("ErrorPC: 0x%p\n",read_c0_errorepc()); mips_dump_regs(regs); |
