Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pmp_soc_region Struct Reference

SoC-specific PMP region descriptor. More...

#include <zephyr/arch/riscv/pmp.h>

Data Fields

const void * start
 Start address of the region (must be aligned to PMP granularity).
const void * end
 End address of the region (exclusive).
uint8_t perm
 PMP permission flags (PMP_R, PMP_W, PMP_X combinations).

Detailed Description

SoC-specific PMP region descriptor.

SoCs can define additional memory regions that need PMP protection using the PMP_SOC_REGION_DEFINE macro. These regions are automatically collected via iterable sections and programmed into the PMP during initialization.

Note: Uses start/end pointers instead of start/size to support regions defined by linker symbols where the size is not a compile-time constant.

Field Documentation

◆ end

const void* pmp_soc_region::end

End address of the region (exclusive).

◆ perm

uint8_t pmp_soc_region::perm

PMP permission flags (PMP_R, PMP_W, PMP_X combinations).

◆ start

const void* pmp_soc_region::start

Start address of the region (must be aligned to PMP granularity).


The documentation for this struct was generated from the following file:
  • zephyr/arch/riscv/pmp.h