components: fix segfault on native by larger stack
This commit is contained in:
parent
64e349a5f1
commit
69040366c7
1 changed files with 4 additions and 1 deletions
|
@ -21,7 +21,10 @@
|
|||
#include <rtthread.h>
|
||||
|
||||
#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
|
||||
#endif /* RT_MAIN_THREAD_STACK_SIZE */
|
||||
#ifndef RT_MAIN_THREAD_PRIORITY
|
||||
|
|
Loading…
Add table
Reference in a new issue