From 8d36c3333cf2f7e2e99ba436c70d2ef3f2a57a83 Mon Sep 17 00:00:00 2001 From: Zihao Yu Date: Mon, 15 Jan 2024 22:35:23 +0800 Subject: [PATCH] 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 --- src/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread.c b/src/thread.c index 3141764..64e77df 100644 --- a/src/thread.c +++ b/src/thread.c @@ -493,7 +493,7 @@ rt_thread_t rt_thread_create(const char *name, return RT_NULL; #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; #endif