thread: fix stack overflow while running fecux on native

* this overwrites the sigmask of saved context, which blocks subsequent
  SIGUSR2 to make yield() not work
This commit is contained in:
Zihao Yu 2024-01-15 22:35:23 +08:00
parent 54b9182024
commit 8d36c3333c

View file

@ -493,7 +493,7 @@ rt_thread_t rt_thread_create(const char *name,
return RT_NULL; return RT_NULL;
#ifdef __ISA_NATIVE__ #ifdef __ISA_NATIVE__
const rt_uint32_t stack_size_min = 0x4000; const rt_uint32_t stack_size_min = 0x8000;
if (stack_size < stack_size_min) stack_size = stack_size_min; if (stack_size < stack_size_min) stack_size = stack_size_min;
#endif #endif