summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/crt0.S
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-08-06 20:39:02 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-08-06 20:39:02 +0000
commit88ae9024e4a1fec45e867f6a1f6cbea0ae0455bb (patch)
tree67fd77d2267eeda80987db55692886546a457e59 /firmware/target/mips/ingenic_jz47xx/crt0.S
parent496e1f7e85f929c487eb89f85ff0fc7edfcf3a27 (diff)
downloadrockbox-88ae9024e4a1fec45e867f6a1f6cbea0ae0455bb.tar.gz
rockbox-88ae9024e4a1fec45e867f6a1f6cbea0ae0455bb.tar.bz2
rockbox-88ae9024e4a1fec45e867f6a1f6cbea0ae0455bb.zip
* Add basic (non-working) support for NAND flash
* Add panicf() handling * Add not-yet-enabled dma acceleration * Other (minor) fixes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18203 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/crt0.S')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/crt0.S17
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