mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
imxrt: 1170 MPU config ensure no lockups can occur
This commit is contained in:
committed by
Xiang Xiao
parent
3762bda5e2
commit
015e7cd607
@@ -51,6 +51,7 @@
|
|||||||
MPU_RASR_XN; /* Execute-never to prevent instruction fetch */
|
MPU_RASR_XN; /* Execute-never to prevent instruction fetch */
|
||||||
putreg32(regval, MPU_RASR);
|
putreg32(regval, MPU_RASR);
|
||||||
|
|
||||||
|
#ifdef CONFIG_IMXRT_SEMC
|
||||||
mpu_configure_region(IMXRT_SEMC0_BASE, 512 * 1024 * 1024,
|
mpu_configure_region(IMXRT_SEMC0_BASE, 512 * 1024 * 1024,
|
||||||
|
|
||||||
/* Instruction access Enabled */
|
/* Instruction access Enabled */
|
||||||
@@ -62,6 +63,7 @@
|
|||||||
/* Not Shareable */
|
/* Not Shareable */
|
||||||
/* No Subregion disable */
|
/* No Subregion disable */
|
||||||
);
|
);
|
||||||
|
#endif
|
||||||
|
|
||||||
mpu_configure_region(IMXRT_FLEXSPI2_CIPHER_BASE, 512 * 1024 * 1024,
|
mpu_configure_region(IMXRT_FLEXSPI2_CIPHER_BASE, 512 * 1024 * 1024,
|
||||||
|
|
||||||
@@ -91,7 +93,7 @@
|
|||||||
|
|
||||||
/* Instruction access Enabled */
|
/* Instruction access Enabled */
|
||||||
|
|
||||||
MPU_RASR_AP_RWRW | /* P:RW U:RW */
|
MPU_RASR_AP_RORO | /* P:R0 U:R0 */
|
||||||
MPU_RASR_TEX_NOR /* Normal */
|
MPU_RASR_TEX_NOR /* Normal */
|
||||||
/* Not Cacheable */
|
/* Not Cacheable */
|
||||||
/* Not Bufferable */
|
/* Not Bufferable */
|
||||||
|
|||||||
Reference in New Issue
Block a user