forked from len0rd/rockbox
Coldfire: Clear the .bss section
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5362 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c32272b15b
commit
bf41fcee8b
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue