CONFIG_MPU_STACK_GUARD

Thread Stack Guards

Thread Stack Guards

Type: bool

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.

Help

Enable Thread Stack Guards via MPU

Direct dependencies

(ARC_CORE_MPU && ARC_MPU_VER != 2 && CPU_HAS_MPU && ARC) || (ARM_MPU && CPU_HAS_MPU && CPU_CORTEX_M && !ARM64 && ARM)

(Includes any dependencies from ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Symbols that select this symbol

Kconfig definitions

At <Zephyr>/arch/arc/core/mpu/Kconfig:19

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:29<Zephyr>/arch/Kconfig:12<Zephyr>/arch/arc/Kconfig:278

Menu path: (Top) → ARC Options → ARCv2 Family Options → ARC MPU Options → ARC Core MPU functionalities

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 <Zephyr>/arch/arm/core/aarch32/cortex_m/mpu/Kconfig:58

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:29<Zephyr>/arch/Kconfig:12<Zephyr>/arch/arm/Kconfig:42<Zephyr>/arch/arm/core/aarch32/Kconfig:237<Zephyr>/arch/arm/core/aarch32/cortex_m/Kconfig:301

Menu path: (Top) → ARM Options

config MPU_STACK_GUARD
    bool "Thread Stack Guards"
    depends on ARM_MPU && CPU_HAS_MPU && CPU_CORTEX_M && !ARM64 && ARM
    help
      Enable Thread Stack Guards via MPU

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)