:orphan: .. title:: CONFIG_MPU_STACK_GUARD .. kconfig:: CONFIG_MPU_STACK_GUARD CONFIG_MPU_STACK_GUARD ###################### *Thread Stack Guards* *Thread Stack Guards* Type: ``bool`` Help ==== .. code-block:: none Enable thread stack guards via MPU. ARC supports built-in stack protection. If your core supports that, it is preferred over MPU stack guard. For ARC_MPU_VER == 2, it requires 2048 extra bytes and a strong start address alignment, this will bring big waste of memory, so no support for it. Help ==== .. code-block:: none Enable Thread Stack Guards via MPU Direct dependencies =================== (\ :kconfig:`ARC_CORE_MPU ` && \ :kconfig:`ARC_MPU_VER ` != 2 && \ :kconfig:`CPU_HAS_MPU ` && \ :kconfig:`ARC `) || (\ :kconfig:`ARM_MPU ` && \ :kconfig:`CPU_HAS_MPU ` && \ :kconfig:`ARM `) *(Includes any dependencies from ifs and menus.)* Defaults ======== No defaults. Implicitly defaults to ``n``. Symbols that select this symbol =============================== - \ :kconfig:`ARC_STACK_PROTECTION ` - \ :kconfig:`ARM_STACK_PROTECTION ` Kconfig definitions =================== At ``/arc/core/mpu/Kconfig:20`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:39`` → ``/Kconfig:12`` → ``/arc/Kconfig:334`` Menu path: (Top) → ARC Options → ARC CPU Options → ARC MPU Options → ARC Core MPU functionalities .. code-block:: kconfig config MPU_STACK_GUARD bool "Thread Stack Guards" depends on ARC_CORE_MPU && ARC_MPU_VER != 2 && CPU_HAS_MPU && ARC help Enable thread stack guards via MPU. ARC supports built-in stack protection. If your core supports that, it is preferred over MPU stack guard. For ARC_MPU_VER == 2, it requires 2048 extra bytes and a strong start address alignment, this will bring big waste of memory, so no support for it. ---- At ``/arm/core/aarch32/mpu/Kconfig:59`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:39`` → ``/Kconfig:12`` → ``/arm/Kconfig:57`` → ``/arm/core/aarch32/Kconfig:297`` Menu path: (Top) → ARM Options .. code-block:: kconfig config MPU_STACK_GUARD bool "Thread Stack Guards" depends on ARM_MPU && CPU_HAS_MPU && ARM help Enable Thread Stack Guards via MPU *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*