summaryrefslogtreecommitdiff
path: root/bsps/arm/raspberrypi/start/bspstarthooks.c
diff options
context:
space:
mode:
authorG S Niteesh Babu <niteesh.gs@gmail.com>2020-03-28 23:54:07 +0530
committerJoel Sherrill <joel@rtems.org>2020-04-10 08:27:18 -0500
commit19efa9a0b9692ffdc1d46bc81284e415ec50e60e (patch)
tree9f8c51fef3709bf227e21ecd9074a15e6665af91 /bsps/arm/raspberrypi/start/bspstarthooks.c
parent840f21ddc753a8f13bea92d7f0596911d6e28764 (diff)
bsp/raspberrypi: Fix build warnings.
1) _Memory_Initialize makes pointer from integer without a cast. 2) printf format error, expects %u but %lu provided.
Diffstat (limited to 'bsps/arm/raspberrypi/start/bspstarthooks.c')
-rw-r--r--bsps/arm/raspberrypi/start/bspstarthooks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bsps/arm/raspberrypi/start/bspstarthooks.c b/bsps/arm/raspberrypi/start/bspstarthooks.c
index fd6aa53059..eb6546db1c 100644
--- a/bsps/arm/raspberrypi/start/bspstarthooks.c
+++ b/bsps/arm/raspberrypi/start/bspstarthooks.c
@@ -184,7 +184,9 @@ static void bsp_memory_initialize(void)
{
_Memory_Initialize(
&_Memory_Areas[0],
+ (void *)
raspberrypi_mmu_config_table[ARMV7_CP15_START_WORKSPACE_ENTRY_INDEX].begin,
+ (void *)
raspberrypi_mmu_config_table[ARMV7_CP15_START_WORKSPACE_ENTRY_INDEX].end
);
}