:orphan: .. title:: CONFIG_ARC_STACK_PROTECTION .. kconfig:: CONFIG_ARC_STACK_PROTECTION CONFIG_ARC_STACK_PROTECTION ########################### *(No prompt -- not directly user assignable.)* Type: ``bool`` Help ==== .. code-block:: none 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 =================== \ :kconfig:`ARC ` *(Includes any dependencies from ifs and menus.)* Default ======= - y if \ :kconfig:`HW_STACK_PROTECTION ` Symbols selected by this symbol =============================== - \ :kconfig:`ARC_STACK_CHECKING ` if \ :kconfig:`ARC_HAS_STACK_CHECKING ` - \ :kconfig:`MPU_STACK_GUARD ` if !\ :kconfig:`ARC_STACK_CHECKING ` && \ :kconfig:`ARC_MPU ` && \ :kconfig:`ARC_MPU_VER ` != 2 - \ :kconfig:`THREAD_STACK_INFO ` Kconfig definition ================== At ``/arc/Kconfig:206`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:39`` → ``/Kconfig:12`` Menu path: (Top) → ARC Options → ARC CPU Options .. code-block:: kconfig config ARC_STACK_PROTECTION bool default y if HW_STACK_PROTECTION select ARC_STACK_CHECKING if ARC_HAS_STACK_CHECKING select MPU_STACK_GUARD if !ARC_STACK_CHECKING && ARC_MPU && ARC_MPU_VER != 2 select THREAD_STACK_INFO depends on 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.)*