Skip to content

Commit 85348ad

Browse files
Andrew Boienashif
authored andcommitted
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 <[email protected]>
1 parent f8be489 commit 85348ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ config SCHED_CPU_MASK
148148
config MAIN_STACK_SIZE
149149
int "Size of stack for initialization and main thread"
150150
default 2048 if COVERAGE_GCOV
151-
default 512 if ZTEST
151+
default 512 if ZTEST && !RISCV32
152152
default 1024
153153
help
154154
When the initialization is complete, the thread executing it then

0 commit comments

Comments
 (0)