mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-22 00:38:06 +08:00
* rl78/crt0.S (_start): Fixed code that clears .bss
This commit is contained in:
parent
67364cbfd9
commit
9e8f756124
@ -1,3 +1,7 @@
|
|||||||
|
2015-10-20 Kaushik Phatak <kaushik.phatak@kpit.com>
|
||||||
|
|
||||||
|
* rl78/crt0.S (_start): Fixed code that clears .bss
|
||||||
|
|
||||||
2015-10-06 Nick Clifton <nickc@redhat.com>
|
2015-10-06 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* msp430/msp430-sim.ld: Add .persistent section.
|
* msp430/msp430-sim.ld: Add .persistent section.
|
||||||
|
@ -176,16 +176,18 @@ _start:
|
|||||||
|
|
||||||
;; block fill to .bss
|
;; block fill to .bss
|
||||||
|
|
||||||
movw bc, #__bsssize
|
movw bc, #__bsssize
|
||||||
movw ax, #0
|
movw ax, #0
|
||||||
1:
|
cmpw ax, bc
|
||||||
cmpw ax, bc
|
bz $_bss_zero_done
|
||||||
bz $1f
|
1:
|
||||||
movw __bssstart[bc], ax
|
decw bc
|
||||||
decw bc
|
decw bc
|
||||||
decw bc
|
movw __bssstart[bc], ax
|
||||||
br $1b
|
cmpw ax, bc
|
||||||
1:
|
bnz $1b
|
||||||
|
|
||||||
|
_bss_zero_done:
|
||||||
|
|
||||||
call !!__rl78_init
|
call !!__rl78_init
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user