Patchwork [U-Boot,05/10] MIPS: xburst/start.S: save gd in s0 register

login
register
mail settings
Submitter Gabor Juhos
Date June 13, 2013, 10:59 a.m.
Message ID <1371121176-20256-6-git-send-email-juhosg@openwrt.org>
Download mbox | patch
Permalink /patch/251045/
State Accepted
Delegated to: Daniel Schwierzeck
Headers show

Comments

Gabor Juhos - June 13, 2013, 10:59 a.m.
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>
---
 arch/mips/cpu/xburst/start.S |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/arch/mips/cpu/xburst/start.S b/arch/mips/cpu/xburst/start.S
index 0fb8e7f..b30768f 100644
--- a/arch/mips/cpu/xburst/start.S
+++ b/arch/mips/cpu/xburst/start.S
@@ -63,6 +63,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
@@ -186,7 +187,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