[PATCH rtems] cpu/armv7m: Fix table based init for ARMV7M_MPU

Christian Mauderer christian.mauderer at embedded-brains.de
Mon Dec 14 10:31:46 UTC 2020


Somehow the table index has been missing in the latest patch version.
With that, the configuration for the first region has been applied
multiple times.

Update #4180
---
 cpukit/score/cpu/arm/include/rtems/score/armv7m.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/cpukit/score/cpu/arm/include/rtems/score/armv7m.h b/cpukit/score/cpu/arm/include/rtems/score/armv7m.h
index c1960455ff..8f926e826a 100644
--- a/cpukit/score/cpu/arm/include/rtems/score/armv7m.h
+++ b/cpukit/score/cpu/arm/include/rtems/score/armv7m.h
@@ -700,7 +700,13 @@ static inline void _ARMV7M_MPU_Setup(
   _Assert(cfg_count <= region_count);
 
   for (region = 0; region < cfg_count; ++region) {
-    _ARMV7M_MPU_Set_region(mpu, region, cfg->rasr, cfg->begin, cfg->end);
+    _ARMV7M_MPU_Set_region(
+      mpu,
+      region,
+      cfg[region].rasr,
+      cfg[region].begin,
+      cfg[region].end
+    );
   }
 
   for (region = cfg_count; region < region_count; ++region) {
-- 
2.26.2



More information about the devel mailing list