mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
mpfs_head.S: Simplify clearing PMP
Initially clear PMP for all harts, this fixes random warm reset issues. Signed-off-by: Ville Juven <ville.juven@unikie.com>
This commit is contained in:
@@ -129,6 +129,10 @@ __start:
|
|||||||
.option pop
|
.option pop
|
||||||
|
|
||||||
#ifdef CONFIG_MPFS_BOOTLOADER
|
#ifdef CONFIG_MPFS_BOOTLOADER
|
||||||
|
/* Clear PMP */
|
||||||
|
|
||||||
|
csrw pmpcfg0, zero
|
||||||
|
csrw pmpcfg2, zero
|
||||||
|
|
||||||
/* Set all but the boot hart into wfi */
|
/* Set all but the boot hart into wfi */
|
||||||
|
|
||||||
@@ -175,11 +179,6 @@ __start:
|
|||||||
sd x0, 0(a4)
|
sd x0, 0(a4)
|
||||||
add a4, a4, 8
|
add a4, a4, 8
|
||||||
blt a4, a5, .clear_l2lim
|
blt a4, a5, .clear_l2lim
|
||||||
|
|
||||||
/* Clear PMP */
|
|
||||||
|
|
||||||
csrw pmpcfg0, zero
|
|
||||||
csrw pmpcfg2, zero
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Set stack pointer to the idle thread stack */
|
/* Set stack pointer to the idle thread stack */
|
||||||
|
|||||||
Reference in New Issue
Block a user