summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-07 09:52:56 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-07 09:53:39 +0200
commit1b560731576c47817fd1cfb6f4946248bafc01a9 (patch)
tree36282effeee9c2d76333b66858ad64540316a4e1
parentc9e0445932691b3b34c7fff979e5799d53d58d59 (diff)
downloadrtems-1b560731576c47817fd1cfb6f4946248bafc01a9.tar.bz2
bsp/imx: Fix pointer from integer warning
-rw-r--r--bsps/arm/imx/start/bspstarthooks.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/bsps/arm/imx/start/bspstarthooks.c b/bsps/arm/imx/start/bspstarthooks.c
index f2ea7b4863..cf3fdc0455 100644
--- a/bsps/arm/imx/start/bspstarthooks.c
+++ b/bsps/arm/imx/start/bspstarthooks.c
@@ -111,10 +111,13 @@ static Memory_Area _Memory_Areas[1];
static void bsp_memory_initialize(void)
{
+ const arm_cp15_start_section_config *section;
+
+ section = &imx_mmu_config_table[ARMV7_CP15_START_WORKSPACE_ENTRY_INDEX];
_Memory_Initialize(
&_Memory_Areas[0],
- imx_mmu_config_table[ARMV7_CP15_START_WORKSPACE_ENTRY_INDEX].begin,
- imx_mmu_config_table[ARMV7_CP15_START_WORKSPACE_ENTRY_INDEX].end
+ (void *) section->begin,
+ (void *) section->end
);
}