Date: Thu, 1 Feb 2007 18:09:10 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 113851 for review Message-ID: <200702011809.l11I9AKb086559@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=113851 Change 113851 by gonzo@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702011809.l11I9AKb086559>