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

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

    From baacf182e65355b61ed1d066c875e23d9328d6bb Mon Sep 17 00:00:00 2001
    From: Arvind S Raj <sraj.arvind@gmail.com>
    Date: Thu, 26 Jun 2014 20:27:27 +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 | 5 +++++
     1 file changed, 5 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..10d5ea1 100644
    a b  
    22
    33#include <asm_defs.h>
    44
     5#include <board_config.h>
     6
    57
    68    .text
    79
    SYMBOL(_start_common):  
    6163
    6264
    6365
     66    ldr r2,=SDRAM_BASE
     67    add r2,#0x1200000
     68    mov sp,r2
    6469    ldrb    r4,gUBootOS
    6570    cmp r4,#0
    6671    beq start_raw