summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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