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 <[email protected]>
This commit is contained in:
committed by
Ithamar R. Adema
parent
3eadb2cc1d
commit
cf0ba4901d
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <asm_defs.h>
|
||||
|
||||
#include <board_config.h>
|
||||
|
||||
.text
|
||||
|
||||
@@ -61,6 +62,7 @@ SYMBOL(_start_common):
|
||||
|
||||
|
||||
|
||||
ldr sp,=SDRAM_BASE + 0x2000000
|
||||
ldrb r4,gUBootOS
|
||||
cmp r4,#0
|
||||
beq start_raw
|
||||
|
||||
Reference in New Issue
Block a user