[uClibc-cvs] svn commit: trunk/uClibc/libc/sysdeps/linux/powerpc

jocke at uclibc.org jocke at uclibc.org
Thu May 26 23:32:39 UTC 2005


Author: jocke
Date: 2005-05-26 17:32:38 -0600 (Thu, 26 May 2005)
New Revision: 10417

Log:
Pass the aligned stack ptr, not the unaligned.


Modified:
   trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S	2005-05-26 23:11:49 UTC (rev 10416)
+++ trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S	2005-05-26 23:32:38 UTC (rev 10417)
@@ -42,9 +42,9 @@
 	.type	__uClibc_start_main,%function
 
 _start:
-	mr	r9,r1 	/* Save the stack pointer */
+	mr	r10,r1 	/* Save the stack pointer */
 	clrrwi	r1,r1,4	/* Align stack ptr to 16 bytes */
-	mr	r10,r1 	/* Pass aligned stack ptr */
+	mr	r9,r1 	/* Pass aligned stack ptr */
 #if defined L_Scrt1
 	bl	_GLOBAL_OFFSET_TABLE_-4 at local
 	mflr	r31
@@ -55,9 +55,9 @@
 	mtlr	r0
 	stw	r0,0(r1)
 	/* find argc from the stack pointer */
-	lwz	r4,0(r9)
+	lwz	r4,0(r10)
 	/* find argv one word offset from the stack pointer */
-	addi	r5,r9,4
+	addi	r5,r10,4
 	mr	r8,r7 /* Pass _dl_fini from ldso or NULL if statically linked */
 	/* Ok, now run uClibc's main() -- shouldn't return */
 # ifdef L_Scrt1




More information about the uClibc-cvs mailing list