Commit e7067471 authored by Kevin Hilman's avatar Kevin Hilman Committed by Russell King

[ARM PATCH] 1986/1: bootpImage/ARM: add ability to run from non-zero address

Patch from Kevin Hilman

The following patch allows the bootpImage to be loaded and executed
from a non-zero address.  On OMAP platforms for example, the physical
address for SDRAM is 0x10000000 and not zero.
parent 9f53c6cc
...@@ -20,8 +20,10 @@ ...@@ -20,8 +20,10 @@
.type _start, #function .type _start, #function
.globl _start .globl _start
_start: adr r13, data _start: add lr, pc, #-0x8 @ lr = current load addr
adr r13, data
ldmia r13!, {r4-r6} @ r5 = dest, r6 = length ldmia r13!, {r4-r6} @ r5 = dest, r6 = length
add r4, r4, lr @ r4 = initrd_start + load addr
bl move @ move the initrd bl move @ move the initrd
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment