Skip to content

Commit 8bc242e

Browse files
ioannisgnashif
authored andcommitted
arm: cortex-m: add extra stack size for test build with FPU_SHARING
Additional stack for tests when building with FPU_SHARING enabled is required, because the option may increase ESF stacking requirements for threads. Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent 2155e19 commit 8bc242e

File tree

1 file changed

+7
-0
lines changed
  • arch/arm/core/aarch32/cortex_m

1 file changed

+7
-0
lines changed

arch/arm/core/aarch32/cortex_m/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,13 @@ config CORTEX_M_DWT
296296
help
297297
Enable and use the Data Watchpoint and Trace (DWT) unit for
298298
timing functions.
299+
300+
# Additional stack for tests when building with FPU_SHARING
301+
# enabled, which may increase ESF stacking requirements for
302+
# threads.
303+
config TEST_EXTRA_STACKSIZE
304+
default 512 if TEST_ARM_CORTEX_M && FPU_SHARING
305+
299306
endmenu
300307

301308
rsource "mpu/Kconfig"

0 commit comments

Comments
 (0)