You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/01/25 12:22:50 UTC
[incubator-nuttx] 06/06: Wipe the PMP configuration in MPFS bootloader start routine
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit fc3cd308d57fb76203575e9fc6d4d2d9e5296571
Author: Ville Juven <vi...@unikie.com>
AuthorDate: Fri Jan 14 11:49:07 2022 +0200
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 c3591a6..fe851b7 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 */