mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 14:40:41 +00:00
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>
This commit is contained in:
parent
ba9cf07122
commit
f01d693535
1 changed files with 2 additions and 1 deletions
|
@ -47,6 +47,7 @@ _start:
|
||||||
relocate_code:
|
relocate_code:
|
||||||
move sp, a0 # set new stack pointer
|
move sp, a0 # set new stack pointer
|
||||||
|
|
||||||
|
move s0, a1 # save gd in s0
|
||||||
move s2, a2 # save destination address in s2
|
move s2, a2 # save destination address in s2
|
||||||
|
|
||||||
li t0, CONFIG_SYS_MONITOR_BASE
|
li t0, CONFIG_SYS_MONITOR_BASE
|
||||||
|
@ -170,7 +171,7 @@ in_ram:
|
||||||
blt t1, t2, 1b
|
blt t1, t2, 1b
|
||||||
addi t1, 4
|
addi t1, 4
|
||||||
|
|
||||||
move a0, a1 # a0 <-- gd
|
move a0, s0 # a0 <-- gd
|
||||||
la t9, board_init_r
|
la t9, board_init_r
|
||||||
jr t9
|
jr t9
|
||||||
move a1, s2
|
move a1, s2
|
||||||
|
|
Loading…
Reference in a new issue