修改格式
This commit is contained in:
parent
2b13e2fa57
commit
341e52d940
|
@ -75,6 +75,6 @@ void main(void)
|
|||
/* startup RT-Thread RTOS */
|
||||
rtthread_startup();
|
||||
|
||||
for ( ; ; );
|
||||
for(;;){}
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ RT_WEAK void rt_hw_cpu_shutdown(void)
|
|||
|
||||
void nested_exception_handler(void)
|
||||
{
|
||||
for ( ; ; );
|
||||
for(;;){}
|
||||
}
|
||||
|
||||
/*------------ hw_nmi_handler() function --------------------------------------
|
||||
|
@ -48,7 +48,7 @@ void nested_exception_handler(void)
|
|||
-----------------------------------------------------------------------------*/
|
||||
void hw_nmi_handler(struct rt_hw_exp_stack_register *regs)
|
||||
{
|
||||
for ( ; ; );
|
||||
for(;;){}
|
||||
}
|
||||
|
||||
/*------------ hw_bad_handler() function --------------------------------------
|
||||
|
@ -59,7 +59,7 @@ void hw_nmi_handler(struct rt_hw_exp_stack_register *regs)
|
|||
-----------------------------------------------------------------------------*/
|
||||
void hw_bad_handler(void)
|
||||
{
|
||||
for ( ; ; );
|
||||
for(;;){}
|
||||
}
|
||||
|
||||
/*------------ hw_int4_handler() function -------------------------------------
|
||||
|
|
|
@ -114,10 +114,9 @@ void do_trap(struct rt_exception_info *except_info, struct rt_hw_exp_stack_regis
|
|||
|
||||
show_regs(regs);
|
||||
|
||||
for( ; ; );
|
||||
for(;;){}
|
||||
}
|
||||
|
||||
|
||||
static struct rt_exception_info iexcept_table[10] = {
|
||||
{ " - instruction fetch", ABORT_TYPE_BUS, ABORT_BUS_ADDRERR },
|
||||
{ " - fetch packet", ABORT_TYPE_BUS, ABORT_BUS_ADDRERR },
|
||||
|
@ -154,7 +153,6 @@ static int process_iexcept(struct rt_hw_exp_stack_register *regs)
|
|||
set_iexcept(iexcept_report);
|
||||
continue;
|
||||
}
|
||||
|
||||
do_trap(&iexcept_table[iexcept_num], regs);
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue