:orphan: .. title:: ARM_STACK_PROTECTION .. option:: 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. The developer still has the option to manually select the MPU-based stack guard, if this is desired. Direct dependencies =================== !\ :option:`ARM64 ` && \ :option:`ARM ` *(Includes any dependencies from ifs and menus.)* Default ======= - y if \ :option:`HW_STACK_PROTECTION ` Symbols selected by this symbol =============================== - \ :option:`MPU_STACK_GUARD ` if !\ :option:`BUILTIN_STACK_GUARD ` && \ :option:`ARM_MPU ` Symbols implied by this symbol ============================== - \ :option:`BUILTIN_STACK_GUARD ` if \ :option:`CPU_CORTEX_M_HAS_SPLIM ` Kconfig definition ================== .. highlight:: kconfig At ``arch/arm/core/aarch32/Kconfig:159`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:29`` → ``arch/Kconfig:12`` → ``arch/arm/Kconfig:42`` Menu path: (Top) → ARM Options .. parsed-literal:: config ARM_STACK_PROTECTION bool default y if \ :option:`HW_STACK_PROTECTION ` select \ :option:`MPU_STACK_GUARD ` if !\ :option:`BUILTIN_STACK_GUARD ` && \ :option:`ARM_MPU ` imply \ :option:`BUILTIN_STACK_GUARD ` if \ :option:`CPU_CORTEX_M_HAS_SPLIM ` depends on !\ :option:`ARM64 ` && \ :option:`ARM ` 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. The developer still has the option to manually select the MPU-based stack guard, if this is desired. *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*