From cf0ba4901dae2b632b8aac9623db663d8ae4869b Mon Sep 17 00:00:00 2001 From: Arvind S Raj Date: Fri, 27 Jun 2014 12:07:41 +0530 Subject: [PATCH] Move stack to SDRAM as specified in memory map. * After initializing the page table and enabling MMU, the pre-MMU stack becomes invalid leading to a fault. This was fixed by moving the stack to SDRAM as specified in LOADER_MEMORYMAP before ARM entry point start_netbsd. Signed-off-by: Ithamar R. Adema --- src/system/boot/platform/u-boot/arch/arm/shell.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/system/boot/platform/u-boot/arch/arm/shell.S b/src/system/boot/platform/u-boot/arch/arm/shell.S index 660fe2bbf8..69b1ff3198 100644 --- a/src/system/boot/platform/u-boot/arch/arm/shell.S +++ b/src/system/boot/platform/u-boot/arch/arm/shell.S @@ -2,6 +2,7 @@ #include +#include .text @@ -61,6 +62,7 @@ SYMBOL(_start_common): + ldr sp,=SDRAM_BASE + 0x2000000 ldrb r4,gUBootOS cmp r4,#0 beq start_raw