aboutsummaryrefslogtreecommitdiff
path: root/libgloss/moxie
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2010-10-02 19:34:25 +0000
committerAnthony Green <green@moxielogic.com>2010-10-02 19:34:25 +0000
commitd661917b1761339e09cbce46954ad65569325a62 (patch)
tree8a8740ff0e45a5521bbfe07e8511136f5add2fe3 /libgloss/moxie
parentf0b04035b14216f492c906a69f16be6783a8e066 (diff)
downloadnewlib-d661917b1761339e09cbce46954ad65569325a62.zip
newlib-d661917b1761339e09cbce46954ad65569325a62.tar.gz
newlib-d661917b1761339e09cbce46954ad65569325a62.tar.bz2
Minor crt0 improvement for moxie
Diffstat (limited to 'libgloss/moxie')
-rw-r--r--libgloss/moxie/crt0.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgloss/moxie/crt0.S b/libgloss/moxie/crt0.S
index d413a45..e166895 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