diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2016-09-06 09:21:11 +0200 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2016-10-02 10:40:35 +0200 |
commit | fab0dd11cb1e1ad4054b1d6fb1e30ee26afd871c (patch) | |
tree | 8e9c318627916ab209e2ad6e77232cce452e461f /c/src/lib/libbsp | |
parent | arm/raspberrypi: change interrupt dispatch and enable to generic vector id ba... (diff) | |
download | rtems-fab0dd11cb1e1ad4054b1d6fb1e30ee26afd871c.tar.bz2 |
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
Diffstat (limited to 'c/src/lib/libbsp')
-rw-r--r-- | c/src/lib/libbsp/arm/raspberrypi/startup/bspstarthooks.c | 1 | ||||
-rw-r--r-- | 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 <bsp/raspberrypi.h> #include <bsp/mm.h> #include <libcpu/arm-cp15.h> +#include <bsp.h> 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); |