From e4b4a8dfe8c3d6ce5880fdd341527b53d8e4a90f Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 16 May 2025 09:16:00 -0700 Subject: [PATCH] riscv: Increase TEST_EXTRA_STACK_SIZE to 4096 if c++ exceptions Initializing the C++ stack unwinding data structures takes quite a bit of stack space. Increase the TEST_EXTRA_STACK_SIZE when using these. Signed-off-by: Keith Packard --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 72907a41fee..7f4f57eb283 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -428,6 +428,7 @@ config MAIN_STACK_SIZE default 2048 if PMP_STACK_GUARD config TEST_EXTRA_STACK_SIZE + default 4096 if CPP_EXCEPTIONS default 1536 config CMSIS_THREAD_MAX_STACK_SIZE