commit | 76c8c6ed795301e13cd94c8bbcab78b95dd309af | [log] [tgz] |
---|---|---|
author | Jim Shu <cwshu@andestech.com> | Thu Oct 07 19:47:54 2021 +0800 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Tue Jan 11 11:47:03 2022 +0100 |
tree | 1da5f99a6b5aa7920f8c40bba98306e5b1571508 | |
parent | df166ddda1323acc79c2f804cac2df1744b269c5 [diff] |
arch: riscv: pmp: add PMP protection of code and rodata This commit enable PMP-based memory protection of code and rodata instead of relying on non-writable real HW (e.g. flash). Use static PMP region with PMP Lock bit to protect them in both user/supervisor mode. Signed-off-by: Jim Shu <cwshu@andestech.com>