This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_PMP_STACK_GUARD_MIN_SIZE

Guard size

Type: int

Help

Minimum size (and alignment when applicable) of an stack guard
region, which guards the stack of a thread. The width of the
guard is set to 16 bytes, to accommodate the riscv
granularity.

Direct dependencies

PMP_STACK_GUARD && RISCV_PMP && RISCV

(Includes any dependencies from ifs and menus.)

Default

  • 16

Kconfig definition

At arch/riscv/core/pmp/Kconfig:30

Included via Kconfig:8Kconfig.zephyr:39arch/Kconfig:12arch/riscv/Kconfig:142

Menu path: (Top) → RISCV Options → RISCV Processor Options → RISC-V PMP Support → Thread Stack Guard

config PMP_STACK_GUARD_MIN_SIZE
    int "Guard size"
    default 16
    depends on PMP_STACK_GUARD && RISCV_PMP && RISCV
    help
      Minimum size (and alignment when applicable) of an stack guard
      region, which guards the stack of a thread. The width of the
      guard is set to 16 bytes, to accommodate the riscv
      granularity.

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