[Patch, moxie] minor crt0.S optimization
green@moxielogic.com
green@moxielogic.com
Tue Oct 5 23:31:00 GMT 2010
I'm checking in this minor optimization to __start in crt0 for the moxie
port.
Thanks,
AG
2010-10-02 Anthony Green <green@moxielogic.com>
* moxie/crt0.S (_start): Minor optimizations to __start.
Index: libgloss/moxie/crt0.S
===================================================================
RCS file: /cvs/src/src/libgloss/moxie/crt0.S,v
retrieving revision 1.2
diff -u -r1.2 crt0.S
--- libgloss/moxie/crt0.S 1 Jul 2009 11:45:49 -0000 1.2
+++ libgloss/moxie/crt0.S 2 Oct 2010 17:54:01 -0000
@@ -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
More information about the Newlib
mailing list