diff options
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/crt0.S')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/crt0.S | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/crt0.S b/firmware/target/mips/ingenic_jz47xx/crt0.S index d56bd57f16..2dff67c79f 100644 --- a/firmware/target/mips/ingenic_jz47xx/crt0.S +++ b/firmware/target/mips/ingenic_jz47xx/crt0.S @@ -98,14 +98,15 @@ _init_cache_loop: mtc0 t0, C0_CONFIG nop - //---------------------------------------------------- - // clear BSS section - //---------------------------------------------------- - la t0, _edata - la t1, _end -1: sw zero, 0(t0) - bne t0, t1, 1b - addiu t0, 4 + //---------------------------------------------------- + // clear BSS section + //---------------------------------------------------- + la t0, _edata + la t1, _end +_init_bss_loop: + sw zero, 0(t0) + bne t0, t1, _init_bss_loop + addiu t0, 4 //---------------------------------------------------- // setup stack, jump to C code |