update jz47xx branch code.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@891 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com committed 2010-09-05 05:14:26 +00:00
1 parent 8dab825fbb
commit 144af8fcfe
2 files changed
+102 -120

No files matched your search

+10 -2
View File
@@ -7,6 +7,7 @@
#include <rtthread.h>
#include <rthw.h>
#include "../common/exception.h"
#include "../common/mipsregs.h"
/**
* @addtogroup Jz47xx
@@ -35,9 +36,16 @@ exception_func_t rt_set_except_vector(int n, exception_func_t func)
return old_handler;
}
void tlbmiss_handle(rt_uint32_t epc)
void tlb_refill_handler(void)
{
rt_kprintf("tlb-miss happens, epc: 0x%08x\n", epc);
rt_kprintf("tlb-miss happens, epc: 0x%08x\n", read_c0_epc());
rt_hw_cpu_shutdown();
}
void cache_error_handler(void)
{
rt_kprintf("cache exception happens, epc: 0x%08x\n", read_c0_epc());
rt_hw_cpu_shutdown();
}
static void unhandled_exception_handle(pt_regs_t *regs)
File diff suppressed because it is too large. Load diff