arch/riscv: add support for detecting null pointer exception using PMP

This change uses a PMP slot to implement null pointer detection.

Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
2 files changed