Skip to content

Commit fb9470c

Browse files
keith-packardnashif
authored andcommitted
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 <[email protected]>
1 parent be40d85 commit fb9470c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/riscv/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ config MAIN_STACK_SIZE
428428
default 2048 if PMP_STACK_GUARD
429429

430430
config TEST_EXTRA_STACK_SIZE
431+
default 4096 if CPP_EXCEPTIONS
431432
default 1536
432433

433434
config CMSIS_THREAD_MAX_STACK_SIZE

0 commit comments

Comments
 (0)