From 0f6c9a5a04f9b901030dcd0ee037390ae3a9a238 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Fri, 3 May 2019 11:48:54 -0700 Subject: [PATCH] kernel: adjust default main stack for riscv We are just at the knife edge with 512, with stack overflows being observed with stack canaries enabled. Given the special case for the idle thread stack size on this arch, seems reasonable to increase it here for that arch. Signed-off-by: Andrew Boie --- kernel/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/Kconfig b/kernel/Kconfig index 84270647b00..cc66913d026 100644 --- a/kernel/Kconfig +++ b/kernel/Kconfig @@ -148,7 +148,7 @@ config SCHED_CPU_MASK config MAIN_STACK_SIZE int "Size of stack for initialization and main thread" default 2048 if COVERAGE_GCOV - default 512 if ZTEST + default 512 if ZTEST && !RISCV32 default 1024 help When the initialization is complete, the thread executing it then