From 3dd1a81164821ead7da9a88c51e6095c768096fd Mon Sep 17 00:00:00 2001
From: Arvind S Raj <sraj.arvind@gmail.com>
Date: Thu, 26 Jun 2014 21:40:09 +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.
---
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 660fe2b..0b4ea36 100644
a
|
b
|
|
2 | 2 | |
3 | 3 | #include <asm_defs.h> |
4 | 4 | |
| 5 | #include <board_config.h> |
5 | 6 | |
6 | 7 | .text |
7 | 8 | |
… |
… |
SYMBOL(_start_common):
|
61 | 62 | |
62 | 63 | |
63 | 64 | |
| 65 | ldr sp,=SDRAM_BASE + 0x1200000 |
64 | 66 | ldrb r4,gUBootOS |
65 | 67 | cmp r4,#0 |
66 | 68 | beq start_raw |