IT lexicon › Hardware › PMP (Physical Memory Protection)

PMP (Physical Memory Protection)

Hardware På svenska → Updated: 2026-11-04

RISC-V's memory protection for systems without an MMU — a short list of regions with read, write and execute permissions.

Each entry is an address register (pmpaddr) plus a configuration byte in pmpcfg holding R, W and X bits, a matching mode and a lock bit. Regions are given either as the range between two entries (TOR) or as naturally aligned power-of-two blocks (NAPOT). The spec originally allowed 16 entries and was extended to 64 in 2021; most microcontrollers ship with far fewer.

Without the lock bit, rules apply only to S- and U-mode and machine mode does as it pleases. With it set, the rule binds M-mode too and cannot be changed until the next reset — handy for write-protecting a bootloader. The Smepmp extension tightens things further so firmware can't even execute code from memory that lower levels can write. It is the counterpart of Arm's MPU.

← Back to the lexicon