summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2014-03-04 10:28:02 +0100
committerMarcin Bukat <marcin.bukat@gmail.com>2014-03-04 10:28:02 +0100
commit2f21f77ade790a9fbd4a92f103f57f6d4bbb5af2 (patch)
treefdd9d8fbec8bfbfa1f19b96e27e7d2db67e53dbe
parent7066197ccc47f292e8d80e21293475a3a782f5e7 (diff)
downloadrockbox-2f21f77.tar.gz
rockbox-2f21f77.tar.bz2
rockbox-2f21f77.zip
ingenic: crt0.S fixes #3
Hopefyly this time is the final one. Change-Id: I386964f407ca98499e9a482507e4d5dfa02ee891
-rw-r--r--firmware/target/mips/ingenic_jz47xx/crt0.S11
1 files changed, 5 insertions, 6 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/crt0.S b/firmware/target/mips/ingenic_jz47xx/crt0.S
index f0ee5aa8bc..0ae365022a 100644
--- a/firmware/target/mips/ingenic_jz47xx/crt0.S
+++ b/firmware/target/mips/ingenic_jz47xx/crt0.S
@@ -144,9 +144,9 @@ _iram_loop:
la t0, _edata
la t1, _end
_bss_loop:
- addiu t1, 4
+ addiu t0, 4
bne t0, t1, _bss_loop
- sw zero, -4(t1)
+ sw zero, -4(t0)
/*
----------------------------------------------------
@@ -155,13 +155,12 @@ _bss_loop:
*/
la sp, stackend
la t0, stackbegin
- move t1, sp
li t2, 0xDEADBEEF
_stack_loop:
- addiu t1, 4
- bne t0, t1, _stack_loop
- sw t2, -4(t1)
+ addiu t0, 4
+ bne t0, sp, _stack_loop
+ sw t2, -4(t0)
/*
----------------------------------------------------