From 1b560731576c47817fd1cfb6f4946248bafc01a9 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 7 Jul 2021 09:52:56 +0200 Subject: bsp/imx: Fix pointer from integer warning --- bsps/arm/imx/start/bspstarthooks.c | 7 +++++-- 1 file 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 ); } -- cgit v1.2.3