components: fix re-entry issue for main()
This commit is contained in:
parent
79c8ec519a
commit
fed1897b98
1 changed files with 2 additions and 0 deletions
|
@ -189,6 +189,7 @@ void main_thread_entry(void *parameter)
|
|||
#ifdef RT_USING_SMP
|
||||
rt_hw_secondary_cpu_up();
|
||||
#endif /* RT_USING_SMP */
|
||||
#if 0
|
||||
/* invoke system main function */
|
||||
#ifdef __ARMCC_VERSION
|
||||
{
|
||||
|
@ -198,6 +199,7 @@ void main_thread_entry(void *parameter)
|
|||
#elif defined(__ICCARM__) || defined(__GNUC__) || defined(__TASKING__) || defined(__TI_COMPILER_VERSION__)
|
||||
main();
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue