diff options
author | Anthony Green <green@moxielogic.com> | 2010-10-02 19:34:25 +0000 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2010-10-02 19:34:25 +0000 |
commit | d661917b1761339e09cbce46954ad65569325a62 (patch) | |
tree | 8a8740ff0e45a5521bbfe07e8511136f5add2fe3 | |
parent | f0b04035b14216f492c906a69f16be6783a8e066 (diff) | |
download | cygnal-d661917b1761339e09cbce46954ad65569325a62.tar.gz cygnal-d661917b1761339e09cbce46954ad65569325a62.tar.bz2 cygnal-d661917b1761339e09cbce46954ad65569325a62.zip |
Minor crt0 improvement for moxie
-rw-r--r-- | libgloss/ChangeLog | 4 | ||||
-rw-r--r-- | libgloss/moxie/crt0.S | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index 23d3dd1e5..1c90c6ea9 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -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> diff --git a/libgloss/moxie/crt0.S b/libgloss/moxie/crt0.S index d413a4580..e166895ac 100644 --- a/libgloss/moxie/crt0.S +++ b/libgloss/moxie/crt0.S @@ -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 |