PERFORCE change 113851 for review
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Thu Feb 1 18:09:11 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=113851
Change 113851 by gonzo at gonzo_jeeves on 2007/02/01 18:08:25
o Make csu meet ABI calls requirements.
Affected files ...
.. //depot/projects/mips2/src/lib/csu/mips/crt1.c#5 edit
.. //depot/projects/mips2/src/lib/csu/mips/crti.S#2 edit
Differences ...
==== //depot/projects/mips2/src/lib/csu/mips/crt1.c#5 (text+ko) ====
@@ -79,6 +79,7 @@
" .align 8 \n"
" .globl _start \n"
" _start: \n"
+" .cpload $25 \n"
" /* Get argc, argv from stack */ \n"
" /* lw a0, 0(sp) */\n"
" /* move a1, sp */\n"
@@ -95,8 +96,11 @@
" \n"
" and $29, 0xfffffff8 \n"
"\n"
-" j __start ");
+" la $25, __start \n"
+" nop \n"
+" j $25\n");
/* ARGSUSED */
+
void
__start(int argc, char **argv)
{
==== //depot/projects/mips2/src/lib/csu/mips/crti.S#2 (text+ko) ====
@@ -6,9 +6,18 @@
.globl _init
.type _init,%function
_init:
+#ifdef __ABICALLS__
+ .set noreorder
+ .cpload $25
+ .set reorder
subu sp, sp, 32
+ .cprestore 16
sw ra, 28(sp)
+#else
+ subu sp, sp, 32
+ sw ra, 28(sp)
+#endif
.section .fini,"ax",%progbits
.align 4
.globl _fini
More information about the p4-projects
mailing list