修改格式

This commit is contained in:
Huang bo 2021-11-18 09:37:05 +08:00
parent 2b13e2fa57
commit 341e52d940
4 changed files with 289 additions and 291 deletions

View File

@ -75,6 +75,6 @@ void main(void)
/* startup RT-Thread RTOS */
rtthread_startup();
for ( ; ; );
for(;;){}
}

View File

@ -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 -------------------------------------

View File

@ -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;