From fab0dd11cb1e1ad4054b1d6fb1e30ee26afd871c Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Tue, 6 Sep 2016 09:21:11 +0200 Subject: arm/raspberrypi: minimized mainline patch move MMU in front of application image and correct RPi2 boot on 4.11 branch. This is minimized version of mainline patch arm/raspberrypi: move MMU in front of application image to respect variable memory size. plus correction which has been part of other mainline patches. This is end of series which allows 4.11 to boot on Raspberry Pi. Closes #2782 Closes #2783 --- c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c | 1 + c/src/lib/libbsp/arm/raspberrypi/startup/linkcmds | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c b/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c index 2504015e77..b3f0229688 100644 --- a/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c +++ b/c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c @@ -27,6 +27,7 @@ #include #include #include +#include void BSP_START_TEXT_SECTION bsp_start_hook_0(void) { diff --git a/c/src/lib/libbsp/arm/raspberrypi/startup/linkcmds b/c/src/lib/libbsp/arm/raspberrypi/startup/linkcmds index f1ad11cc1e..fc72b5cfd0 100644 --- a/c/src/lib/libbsp/arm/raspberrypi/startup/linkcmds +++ b/c/src/lib/libbsp/arm/raspberrypi/startup/linkcmds @@ -36,9 +36,9 @@ */ MEMORY { - VECTOR_RAM (AIW) : ORIGIN = 0x0 , LENGTH = 0x8000 - RAM (AIW) : ORIGIN = 0x00008000, LENGTH = 128M - 48K - RAM_MMU (AIW) : ORIGIN = 128M - 16k, LENGTH = 16k + VECTOR_RAM (AIW) : ORIGIN = 0x0 , LENGTH = 16k + RAM_MMU (AIW) : ORIGIN = 0x00004000, LENGTH = 16k + RAM (AIW) : ORIGIN = 0x00008000, LENGTH = 128M - 32k } REGION_ALIAS ("REGION_START", RAM); -- cgit v1.2.3