Minor optimization and bug fix for moxie.

This commit is contained in:
Anthony Green 2012-10-27 15:57:12 +00:00
parent f71f133bda
commit ffa2dd6787
4 changed files with 14 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2012-10-27 Anthony Green <green@moxielogic.com>
* moxie/crt0.S (_start): Call memset with correct
ABI.
2012-10-03 DJ Delorie <dj@redhat.com> 2012-10-03 DJ Delorie <dj@redhat.com>
* rl78/crt0.S (_interrupt_vector_table): Convert from CPP macros * rl78/crt0.S (_interrupt_vector_table): Convert from CPP macros

View File

@ -19,18 +19,15 @@
.type __start,@function .type __start,@function
__start: __start:
_start: _start:
ldi.l $sp, (_stack-12)/* load up stack pointer with space ldi.l $sp, _stack /* set the top of stack */
for stack frame. */
xor $fp, $fp /* zero fp to allow unwinders to stop */ xor $fp, $fp /* zero fp to allow unwinders to stop */
/* zero the bss area */ /* zero the bss area */
ldi.l $r0, __bss_start__ ldi.l $r0, __bss_start__
ldi.l $r1, __bss_end__ xor $r1, $r1
sub.l $r1, $r0 ldi.l $r2, __bss_end__
sto.l 8($sp), $r1 sub.l $r2, $r0
ldi.l $r1, 0
jsra memset jsra memset
inc $sp, 12
/* Call _init to invoke static constructors, etc. */ /* Call _init to invoke static constructors, etc. */
jsra _init jsra _init

View File

@ -1,3 +1,7 @@
2012-10-27 Anthony Green <green@moxielogic.com>
* libc/machine/moxie/setjmp.S (setjmp): Minor optimization.
2012-10-26 Corinna Vinschen <vinschen@redhat.com> 2012-10-26 Corinna Vinschen <vinschen@redhat.com>
* libc/include/sys/signal.h (sigset_t): Don't define when building * libc/include/sys/signal.h (sigset_t): Don't define when building

View File

@ -51,7 +51,7 @@ setjmp:
sto.l 0x34($r0), $r13 sto.l 0x34($r0), $r13
sto.l 0x38($r0), $sp sto.l 0x38($r0), $sp
sto.l 0x3c($r0), $fp sto.l 0x3c($r0), $fp
ldi.l $r0, 0x00 xor $r0, $r0
ret ret
.Lend1: .Lend1:
.size setjmp,.Lend1-setjmp .size setjmp,.Lend1-setjmp