[rtems commit] bsps/arm/imxrt: Optimize nocache memory settings
Christian Mauderer
christianm at rtems.org
Mon Aug 21 06:55:18 UTC 2023
Module: rtems
Branch: master
Commit: 094355d4f1144ad28684deab5167d8e203cbe459
Changeset: http://git.rtems.org/rtems/commit/?id=094355d4f1144ad28684deab5167d8e203cbe459
Author: Christian Mauderer <christian.mauderer at embedded-brains.de>
Date: Fri Aug 11 07:37:34 2023 +0200
bsps/arm/imxrt: Optimize nocache memory settings
The nocache-memory was set as device memory. It's not necessary to be
that strict. Set it to normal non-cacheable non-shareable memory
instead.
---
bsps/arm/imxrt/start/mpu-config.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bsps/arm/imxrt/start/mpu-config.c b/bsps/arm/imxrt/start/mpu-config.c
index a8f98f1c81..93a4cb08e4 100644
--- a/bsps/arm/imxrt/start/mpu-config.c
+++ b/bsps/arm/imxrt/start/mpu-config.c
@@ -53,13 +53,13 @@ BSP_START_DATA_SECTION const ARMV7M_MPU_Region_config
.begin = imxrt_memory_extram_nocache_begin,
.end = imxrt_memory_extram_nocache_end,
.rasr = ARMV7M_MPU_RASR_AP(0x3)
- | ARMV7M_MPU_RASR_TEX(0x2)
+ | ARMV7M_MPU_RASR_TEX(0x1)
| ARMV7M_MPU_RASR_ENABLE,
}, {
.begin = imxrt_memory_ocram_nocache_begin,
.end = imxrt_memory_ocram_nocache_end,
.rasr = ARMV7M_MPU_RASR_AP(0x3)
- | ARMV7M_MPU_RASR_TEX(0x2)
+ | ARMV7M_MPU_RASR_TEX(0x1)
| ARMV7M_MPU_RASR_ENABLE,
}, {
.begin = imxrt_memory_peripheral_begin,
More information about the vc
mailing list