-
CONFIG_ARM_STACK_PROTECTION
¶
(No prompt – not directly user assignable.)
Type: bool
Help¶
This option enables either: - The built-in Stack Pointer limit checking, or - the MPU-based stack guard to cause a system fatal error if the bounds of the current process stack are overflowed. The two stack guard options are mutually exclusive. The selection of the built-in Stack Pointer limit checking is prioritized over the MPU-based stack guard.
Defaults¶
- “y” if
HW_STACK_PROTECTION
&&ARM
Symbols selected by this symbol¶
BUILTIN_STACK_GUARD
ifCPU_CORTEX_M_HAS_SPLIM
&&ARM
MPU_STACK_GUARD
if !BUILTIN_STACK_GUARD
&&ARM_MPU
&&ARM
Kconfig definition¶
At arch/arm/core/Kconfig:45
Included via Kconfig:10
→ Kconfig.zephyr:29
→ arch/Kconfig:15
→ arch/arm/Kconfig:13
Menu path: (top menu) → ARM Options
config ARM_STACK_PROTECTION bool default "y" ifHW_STACK_PROTECTION
&&ARM
selectBUILTIN_STACK_GUARD
ifCPU_CORTEX_M_HAS_SPLIM
&&ARM
selectMPU_STACK_GUARD
if !BUILTIN_STACK_GUARD
&&ARM_MPU
&&ARM
depends onARM
help This option enables either: - The built-in Stack Pointer limit checking, or - the MPU-based stack guard to cause a system fatal error if the bounds of the current process stack are overflowed. The two stack guard options are mutually exclusive. The selection of the built-in Stack Pointer limit checking is prioritized over the MPU-based stack guard.
(Definitions include propagated dependencies, including from if’s and menus.)