CONFIG_SRAM_REGION_PERMISSIONS

Assign appropriate permissions to kernel areas in SRAM

Type: bool

Help

If enabled, the program text, rodata, and data parts of the kernel in the permanent mappings created at build time will have appropriate permissions set. Uses extra memory due to page-alignment constraints. If not enabled, all SRAM mappings will allow supervisor mode to read, write, and execute. User mode support requires this.

Direct dependencies

MMU

(Includes any dependencies from ifs and menus.)

Default

  • y

Symbols that select this symbol

Kconfig definition

At <Zephyr>/arch/Kconfig:582

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:29

Menu path: (Top) → Enable MMU features

config SRAM_REGION_PERMISSIONS
    bool "Assign appropriate permissions to kernel areas in SRAM"
    default y
    depends on MMU
    help
      If enabled, the program text, rodata, and data parts of the kernel in
      the permanent mappings created at build time will have appropriate
      permissions set. Uses extra memory due to page-alignment constraints.
      If not enabled, all SRAM mappings will allow supervisor mode to
      read, write, and execute. User mode support requires this.

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