Date: Wed, 22 Nov 2006 16:12:32 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 110394 for review Message-ID: <200611221612.kAMGCWTd092481@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=110394 Change 110394 by gonzo@gonzo_hq on 2006/11/22 16:12:27 o __start arguments (argc/argv/env) are located right on stack pointer. Affected files ... .. //depot/projects/mips2/src/lib/csu/mips/crt1.c#3 edit Differences ... ==== //depot/projects/mips2/src/lib/csu/mips/crt1.c#3 (text+ko) ==== @@ -81,13 +81,13 @@ " _start: \n" " /* Get argc, argv from stack */ \n" " \n" -" /* lw a0, -32(sp) */\n" +" /* lw a0, 0(sp) */\n" " /* move a1, sp */\n" -" /* addu a1, 32 + 4 */\n" +" /* addu a1, 4 */\n" " \n" -" lw $4, -32($29) \n" +" lw $4, 0($29) \n" " move $5, $29 \n" -" addu $5, 36 \n" +" addu $5, 4 \n" " /* TODO: Ensure the stack is properly aligned before calling C code. */\n" "\n" " j __start ");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611221612.kAMGCWTd092481>