summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-10-26 22:24:43 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-10-26 22:24:43 +0000
commitbf41fcee8b46fe0c3f52c7d6431ea1effc0c3a5e (patch)
treef1d2a8c3aca8d1e9616b117edbbd2158a2c23323
parentc32272b15bbc263b4b5dd5d37596899596ca823e (diff)
Coldfire: Clear the .bss section
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5362 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/crt0.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/crt0.S b/firmware/crt0.S
index baa5361c4e..78dce1ad2e 100644
--- a/firmware/crt0.S
+++ b/firmware/crt0.S
@@ -94,6 +94,16 @@ start:
bra .iramloop
.iramloopend:
+ lea _edata,%a2
+ lea _end,%a4
+ clr.l %d0
+.edataloop:
+ cmp.l %a2,%a4
+ beq .edataloopend
+ move.w %d0,(%a2)+
+ bra .edataloop
+.edataloopend:
+
lea _datacopy,%a2
lea _datastart,%a3
lea _dataend,%a4