Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libgloss/moxie/crt0.S')
-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 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