riscv-software-src / riscv-pk

RISC-V Proxy Kernel
Other
593 stars 308 forks source link

Use PMP to protect the loader from S-mode payloads #138

Closed aswaterman closed 5 years ago

aswaterman commented 5 years ago

The purpose of this isn't ironclad security; this loader is still written to assume the S-mode payload is trusted. The intent is to catch OS bugs early: the OS should never be accessing the loader's memory.