:orphan: .. title:: MPU_STACK_GUARD .. option:: 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 =================== (\ :option:`ARC_CORE_MPU ` && \ :option:`ARC_MPU_VER ` != 2 && \ :option:`CPU_HAS_MPU ` && \ :option:`ARC `) || (\ :option:`ARM_MPU ` && \ :option:`CPU_HAS_MPU ` && \ :option:`CPU_CORTEX_M ` && !\ :option:`ARM64 ` && \ :option:`ARM `) *(Includes any dependencies from ifs and menus.)* Defaults ======== No defaults. Implicitly defaults to ``n``. Symbols that select this symbol =============================== - \ :option:`ARC_STACK_PROTECTION ` - \ :option:`ARM_STACK_PROTECTION ` Kconfig definitions =================== .. highlight:: kconfig At ``arch/arc/core/mpu/Kconfig:19`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:29`` → ``arch/Kconfig:12`` → ``arch/arc/Kconfig:281`` Menu path: (Top) → ARC Options → ARCv2 Family Options → ARC MPU Options → ARC Core MPU functionalities .. parsed-literal:: config MPU_STACK_GUARD bool "Thread Stack Guards" depends on \ :option:`ARC_CORE_MPU ` && \ :option:`ARC_MPU_VER ` != 2 && \ :option:`CPU_HAS_MPU ` && \ :option:`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 ``arch/arm/core/aarch32/cortex_m/mpu/Kconfig:59`` Included via ``Kconfig:8`` → ``Kconfig.zephyr:29`` → ``arch/Kconfig:12`` → ``arch/arm/Kconfig:42`` → ``arch/arm/core/aarch32/Kconfig:237`` → ``arch/arm/core/aarch32/cortex_m/Kconfig:308`` Menu path: (Top) → ARM Options .. parsed-literal:: config MPU_STACK_GUARD bool "Thread Stack Guards" depends on \ :option:`ARM_MPU ` && \ :option:`CPU_HAS_MPU ` && \ :option:`CPU_CORTEX_M ` && !\ :option:`ARM64 ` && \ :option:`ARM ` help Enable Thread Stack Guards via MPU *(The 'depends on' condition includes propagated dependencies from ifs and menus.)*