components: fix segfault on native by larger stack

This commit is contained in:
Zihao Yu 2023-10-02 13:26:20 +08:00
parent 64e349a5f1
commit 69040366c7

View file

@ -21,7 +21,10 @@
#include <rtthread.h> #include <rtthread.h>
#ifdef RT_USING_USER_MAIN #ifdef RT_USING_USER_MAIN
#ifndef RT_MAIN_THREAD_STACK_SIZE #ifdef __ISA_NATIVE__
#undef RT_MAIN_THREAD_STACK_SIZE
#define RT_MAIN_THREAD_STACK_SIZE (4096 * 3)
#elif !defined(RT_MAIN_THREAD_STACK_SIZE)
#define RT_MAIN_THREAD_STACK_SIZE 2048 #define RT_MAIN_THREAD_STACK_SIZE 2048
#endif /* RT_MAIN_THREAD_STACK_SIZE */ #endif /* RT_MAIN_THREAD_STACK_SIZE */
#ifndef RT_MAIN_THREAD_PRIORITY #ifndef RT_MAIN_THREAD_PRIORITY