Minor crt0 improvement for moxie

This commit is contained in:
Anthony Green 2010-10-02 19:34:25 +00:00
parent f0b04035b1
commit d661917b17
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2010-10-02 Anthony Green <green@moxielogic.com>
* moxie/crt0.S (_start): Minor optimizations to __start.
2010-09-23 Mike Frysinger <vapier@gentoo.org>
Corinna Vinschen <vinschen@redhat.com>

View File

@ -19,11 +19,11 @@
.type __start,@function
__start:
_start:
ldi.l $sp, _stack /* load up stack pointer */
ldi.l $fp, 0x0 /* zero fp to allow unwinders to stop */
ldi.l $sp, (_stack-12)/* load up stack pointer with space
for stack frame. */
xor $fp, $fp /* zero fp to allow unwinders to stop */
/* zero the bss area */
dec $sp, 12
ldi.l $r0, __bss_start__
ldi.l $r1, __bss_end__
sub.l $r1, $r0