将异常向量间隔从0x20改为0x80,mips系列cpu的异常向量的间隔为0x80(十进制的128)字节
详细内容请参见《see mips run》中的5.3节——异常向量:异常处理开始的地方
This commit is contained in:
parent
574e22bdbd
commit
96f3600bde
@ -51,9 +51,9 @@ void rtthread_startup(void)
|
||||
rt_hw_interrupt_init();
|
||||
|
||||
/* copy vector */
|
||||
rt_memcpy((void *)A_K0BASE, tlb_refill_exception, 0x20);
|
||||
rt_memcpy((void *)(A_K0BASE + 0x180), general_exception, 0x20);
|
||||
rt_memcpy((void *)(A_K0BASE + 0x200), irq_exception, 0x20);
|
||||
rt_memcpy((void *)A_K0BASE, tlb_refill_exception, 0x80);
|
||||
rt_memcpy((void *)(A_K0BASE + 0x180), general_exception, 0x80);
|
||||
rt_memcpy((void *)(A_K0BASE + 0x200), irq_exception, 0x80);
|
||||
|
||||
invalidate_writeback_dcache_all();
|
||||
invalidate_icache_all();
|
||||
|
Loading…
x
Reference in New Issue
Block a user