From fc3cd308d57fb76203575e9fc6d4d2d9e5296571 Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Fri, 14 Jan 2022 11:49:07 +0200 Subject: [PATCH] Wipe the PMP configuration in MPFS bootloader start routine This way old PMP configurations are removed upon warm reset. --- arch/risc-v/src/mpfs/mpfs_head.S | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/risc-v/src/mpfs/mpfs_head.S b/arch/risc-v/src/mpfs/mpfs_head.S index c3591a6f3d..fe851b73dc 100755 --- a/arch/risc-v/src/mpfs/mpfs_head.S +++ b/arch/risc-v/src/mpfs/mpfs_head.S @@ -192,6 +192,10 @@ __start: .continue_boot: + /* Clear PMP */ + + csrw pmpcfg0, zero + csrw pmpcfg2, zero #endif /* Set stack pointer to the idle thread stack */