PERFORCE change 110394 for review

Oleksandr Tymoshenko gonzo at FreeBSD.org
Wed Nov 22 16:12:34 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=110394

Change 110394 by gonzo at 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  ");


More information about the p4-projects mailing list