summaryrefslogtreecommitdiffstats
path: root/bsps/arm/imxrt/start/bspstarthooks.c
diff options
context:
space:
mode:
authorKarel Gardas <karel@functional.vision>2023-03-16 14:25:10 +0100
committerKarel Gardas <karel@functional.vision>2023-03-16 15:40:22 +0100
commit139bc390b508382af4965e26933d114373f136e7 (patch)
tree8d7084bcb168d1167751cd5b3fc5ce4ca3455b11 /bsps/arm/imxrt/start/bspstarthooks.c
parentspec: add MPU CTRL option to be usable on ARMV7M based BSPs (diff)
downloadrtems-139bc390b508382af4965e26933d114373f136e7.tar.bz2
score/arm: enhance ARMV7M MPU setup with capability to set control register
Due to API change, the patch also fixes affected BSPs and uses value provided by MPU CTRL spec option there. Sponsored-By: Precidata
Diffstat (limited to '')
-rw-r--r--bsps/arm/imxrt/start/bspstarthooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/arm/imxrt/start/bspstarthooks.c b/bsps/arm/imxrt/start/bspstarthooks.c
index 684c263152..482300a1bc 100644
--- a/bsps/arm/imxrt/start/bspstarthooks.c
+++ b/bsps/arm/imxrt/start/bspstarthooks.c
@@ -46,7 +46,7 @@ BSP_START_TEXT_SECTION void bsp_start_hook_0(void)
SCB_EnableDCache();
}
- _ARMV7M_MPU_Setup(imxrt_config_mpu_region, imxrt_config_mpu_region_count);
+ _ARMV7M_MPU_Setup(ARMV7M_MPU_CTRL_DEFAULT, imxrt_config_mpu_region, imxrt_config_mpu_region_count);
}
BSP_START_TEXT_SECTION void bsp_start_hook_1(void)