:orphan: .. title:: ARC_STACK_PROTECTION .. option:: CONFIG_ARC_STACK_PROTECTION *(No prompt -- not directly user assignable.)* Type: ``bool`` Help ==== This option enables either: - The ARC stack 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 ARC stack checking is prioritized over the MPU-based stack guard. Direct dependencies =================== \ :option:`ARC ` *(Includes any dependencies from ifs and menus.)* Default ======= - y if \ :option:`HW_STACK_PROTECTION ` Symbols selected by this symbol =============================== - \ :option:`ARC_STACK_CHECKING ` if \ :option:`ARC_HAS_STACK_CHECKING ` - \ :option:`MPU_STACK_GUARD ` if !\ :option:`ARC_STACK_CHECKING ` && \ :option:`ARC_MPU ` && \ :option:`ARC_MPU_VER ` != 2 - \ :option:`THREAD_STACK_INFO ` Kconfig definition ================== .. highlight:: kconfig At ``arch/arc/Kconfig:155`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:29`` → ``arch/Kconfig:12`` Menu path: (Top) → ARC Options → ARCv2 Family Options .. parsed-literal:: config ARC_STACK_PROTECTION bool default y if \ :option:`HW_STACK_PROTECTION ` select \ :option:`ARC_STACK_CHECKING ` if \ :option:`ARC_HAS_STACK_CHECKING ` select \ :option:`MPU_STACK_GUARD ` if !\ :option:`ARC_STACK_CHECKING ` && \ :option:`ARC_MPU ` && \ :option:`ARC_MPU_VER ` != 2 select \ :option:`THREAD_STACK_INFO ` depends on \ :option:`ARC ` help This option enables either: - The ARC stack 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 ARC stack checking is prioritized over the MPU-based stack guard. *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*