[email protected]
[Top] [All Lists]

PERFORCE change 113851 for review

Subject: PERFORCE change 113851 for review
From: Oleksandr Tymoshenko
Date: Thu, 1 Feb 2007 18:09:10 GMT
http://perforce.freebsd.org/chv.cgi?CH=113851

Change 113851 by [email protected]_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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/p4-projects
To unsubscribe, send any mail to "[email protected]"

<Prev in Thread] Current Thread [Next in Thread>
  • PERFORCE change 113851 for review, Oleksandr Tymoshenko <=