summaryrefslogtreecommitdiff
path: root/arch/mips/cpu/xburst
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-06-13 12:59:31 +0200
committerTom Rini <trini@ti.com>2013-07-24 09:51:06 -0400
commitf01d6935350d1487bfc26d06f0f6888e1ab47236 (patch)
treea47f30cadd2f104bb36a4de6798f24e3ccdbb1ad /arch/mips/cpu/xburst
parentba9cf07122ce7ab3a10ab2873deb890bf2c72bd9 (diff)
downloadu-boot-imx-f01d6935350d1487bfc26d06f0f6888e1ab47236.zip
u-boot-imx-f01d6935350d1487bfc26d06f0f6888e1ab47236.tar.gz
u-boot-imx-f01d6935350d1487bfc26d06f0f6888e1ab47236.tar.bz2
MIPS: xburst/start.S: save gd in s0 register
Synchronize the code with mips{32,64}/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Diffstat (limited to 'arch/mips/cpu/xburst')
-rw-r--r--arch/mips/cpu/xburst/start.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/cpu/xburst/start.S b/arch/mips/cpu/xburst/start.S
index 2dfd27e..6adabdc 100644
--- a/arch/mips/cpu/xburst/start.S
+++ b/arch/mips/cpu/xburst/start.S
@@ -47,6 +47,7 @@ _start:
relocate_code:
move sp, a0 # set new stack pointer
+ move s0, a1 # save gd in s0
move s2, a2 # save destination address in s2
li t0, CONFIG_SYS_MONITOR_BASE
@@ -170,7 +171,7 @@ in_ram:
blt t1, t2, 1b
addi t1, 4
- move a0, a1 # a0 <-- gd
+ move a0, s0 # a0 <-- gd
la t9, board_init_r
jr t9
move a1, s2