From fed1897b98e3d284107eb04d02d7dfcc56390a4d Mon Sep 17 00:00:00 2001 From: Zihao Yu Date: Wed, 24 May 2023 14:15:42 +0800 Subject: [PATCH] components: fix re-entry issue for main() --- src/components.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components.c b/src/components.c index 97ace80..731fbd7 100644 --- a/src/components.c +++ b/src/components.c @@ -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 } /**