riscv: add physical memory protection (PMP) support

Hardware / Coreboot - Xiang Wang [126.com] - 11 October 2018 10:56 EDT

These codes are written by me based on the privileged instruction set. I tested it by qemu/riscv-probe.

Change-Id: I2e9e0c94e6518f63ade7680a3ce68bacfae219d4

4356e09235 riscv: add physical memory protection (PMP) support
src/arch/riscv/Makefile.inc | 3 +
src/arch/riscv/include/arch/pmp.h | 31 ++++
src/arch/riscv/pmp.c | 321 ++++++++++++++++++++++++++++++++++++++
3 files changed, 355 insertions(+)

Upstream: review.coreboot.org


  • Share