PMP Enhancements for memory access and execution prevention on Machine mode
Type: privileged
| Version | State | Ratified |
|---|---|---|
| 1.0.0 | ratified | 2021-12 |
The Smepmp extension enhances the Physical Memory Protection (PMP) mechanism to support M-mode memory access and execution prevention.
Smepmp adds a new Machine Security Configuration register (`mseccfg`) with the following key fields:
* **MML (Machine Mode Lockdown)**: When set, changes the interpretation of PMP rules so that `pmpcfg.L` marks rules as M-mode-only rather than locked. This enables shared regions accessible across multiple privilege levels.
* **MMWP (Machine Mode Whitelist Policy)**: When set, memory regions without matching PMP rules are denied in M-mode instead of being accessible. This provides a default-deny policy for M-mode.
* **RLB (Rule Locking Bypass)**: Allows modification of locked PMP rules. Intended as a debug mechanism or temporary boot-time workaround.
These enhancements enable more secure system configurations by allowing software to restrict M-mode's access to memory, which is essential for implementing trusted execution environments and secure boot processes.
mseccfg — Machine Security Configurationmseccfgh — Most significant 32 bits of Machine Security ConfigurationVersion af3eaf9+cheriot.f635218
Data from the RISC-V Unified Database, copyright RISC-V International and contributors.
CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.
This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.