Skip to content
Permalink
Browse files

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 <andrew.p.boie@intel.com>
  • Loading branch information...
andrewboie committed May 3, 2019
1 parent d6f033e commit 0f6c9a5a04f9b901030dcd0ee037390ae3a9a238
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 0f6c9a5

Please sign in to comment.
You can’t perform that action at this time.