Ticket #10984: 0001-Move-stack-to-SDRAM-as-specified-in-memory-map.3.patch

File 0001-Move-stack-to-SDRAM-as-specified-in-memory-map.3.patch, 1014 bytes (added by arvindsraj, 5 years ago)
  • src/system/boot/platform/u-boot/arch/arm/shell.S

    From 5158df4a3ee5c6e5f049dcd063f0f4acf88d6bee Mon Sep 17 00:00:00 2001
    From: Arvind S Raj <sraj.arvind@gmail.com>
    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.
    ---
     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..69b1ff3 100644
    a b  
    22
    33#include <asm_defs.h>
    44
     5#include <board_config.h>
    56
    67    .text
    78
    SYMBOL(_start_common):  
    6162
    6263
    6364
     65    ldr sp,=SDRAM_BASE + 0x2000000
    6466    ldrb    r4,gUBootOS
    6567    cmp r4,#0
    6668    beq start_raw