summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-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:
144 la t0, _edata 144 la t0, _edata
145 la t1, _end 145 la t1, _end
146_bss_loop: 146_bss_loop:
147 addiu t1, 4 147 addiu t0, 4
148 bne t0, t1, _bss_loop 148 bne t0, t1, _bss_loop
149 sw zero, -4(t1) 149 sw zero, -4(t0)
150 150
151 /* 151 /*
152 ---------------------------------------------------- 152 ----------------------------------------------------
@@ -155,13 +155,12 @@ _bss_loop:
155 */ 155 */
156 la sp, stackend 156 la sp, stackend
157 la t0, stackbegin 157 la t0, stackbegin
158 move t1, sp
159 li t2, 0xDEADBEEF 158 li t2, 0xDEADBEEF
160 159
161_stack_loop: 160_stack_loop:
162 addiu t1, 4 161 addiu t0, 4
163 bne t0, t1, _stack_loop 162 bne t0, sp, _stack_loop
164 sw t2, -4(t1) 163 sw t2, -4(t0)
165 164
166 /* 165 /*
167 ---------------------------------------------------- 166 ----------------------------------------------------