| commit | 9482f8df0248f8546aab710097e7225ceeb72765 | [log] [tgz] |
|---|---|---|
| author | Firas Sammoura <fsammoura@google.com> | Mon Oct 13 17:17:46 2025 +0000 |
| committer | Chris Friedt <chrisfriedt@gmail.com> | Wed Oct 15 17:35:51 2025 -0400 |
| tree | 03b9f453da788f7da3fce367242255024991e34b | |
| parent | b24004fa5d02c888c254c018f4d715a9292a025a [diff] |
riscv: pmp: Add helper to write PMP configuration CSRs Introduce `z_riscv_pmp_write_config` to abstract writing to pmpcfg registers. This function handles the differing register layouts and slot counts between RV32 and RV64 architectures, writing to the appropriate pmpcfg0, pmpcfg1, pmpcfg2, or pmpcfg3 CSRs as needed based on CONFIG_PMP_SLOTS. Signed-off-by: Firas Sammoura <fsammoura@google.com>