You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
riscv: pmp: Configure entries from Device Tree via memattr
This commit enables the custom PMP entry feature to source region
information from the Device Tree using the Zephyr `memattr` API,
instead of direct Kconfig definitions.
When `CONFIG_CUSTOM_PMP_ENTRY` is enabled, the system now iterates
through memory regions tagged with `zephyr,memattr` in the Device Tree
during the PMP initialization in `z_riscv_pmp_init()`. For each region
found, a corresponding PMP entry is set up.
This approach allows for more flexible and hardware-specific memory
protection schemes defined within the Device Tree. The region's base
address, size, and access permissions (R/W/X) are now read from the
Device Tree node attributes.
This feature is designed for applications requiring runtime control of
memory permissions for critical areas, such as firmware rollback
segments or sensitive configuration data. This control is established
early in the boot process.
Signed-off-by: Firas Sammoura <[email protected]>
0 commit comments