Zephyr Project API 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pmp.h File Reference

Go to the source code of this file.

Data Structures

struct  pmp_soc_region
 SoC-specific PMP region descriptor. More...

Macros

#define PMP_SOC_REGION_DEFINE(name, _start, _end, _perm)
 Define a SoC-specific PMP region.

Macro Definition Documentation

◆ PMP_SOC_REGION_DEFINE

#define PMP_SOC_REGION_DEFINE ( name,
_start,
_end,
_perm )
Value:
static const STRUCT_SECTION_ITERABLE(pmp_soc_region, name) = { \
.start = (const void *)(_start), \
.end = (const void *)(_end), \
.perm = (_perm), \
}
#define STRUCT_SECTION_ITERABLE(struct_type, varname)
Defines a new element for an iterable section.
Definition iterable_sections.h:216
SoC-specific PMP region descriptor.
Definition pmp.h:24

Define a SoC-specific PMP region.

This macro allows SoCs to register memory regions that require PMP protection. The regions are collected at link time and programmed during PMP initialization.

Parameters
nameUnique identifier for this region
_startStart address of the region (pointer or linker symbol)
_endEnd address of the region (pointer or linker symbol, exclusive)
_permPMP permission flags (PMP_R | PMP_W | PMP_X)