components: fix re-entry issue for main()

This commit is contained in:
Zihao Yu 2023-05-24 14:15:42 +08:00
parent 79c8ec519a
commit fed1897b98

View file

@ -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
}
/**