Title: [1918] trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S: Upstream revision 18166 - PPC stuff
Revision
1918
Author
bernds
Date
2007-11-22 14:48:49 -0600 (Thu, 22 Nov 2007)

Log Message

Upstream revision 18166 - PPC stuff

Diffstat

 crt1.S |    7 +++++++
 1 files changed, 7 insertions(+)

Modified Paths

Diff

Modified: trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S (1917 => 1918)


--- trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S	2007-11-22 20:47:58 UTC (rev 1917)
+++ trunk/uClibc/libc/sysdeps/linux/powerpc/crt1.S	2007-11-22 20:48:49 UTC (rev 1918)
@@ -58,6 +58,13 @@
 	mflr	r31
 # endif
 #endif
+	/* Set up the small data pointer in r13.  */
+#ifdef __PIC__
+	lwz	r13,[EMAIL PROTECTED](r31)
+#else
+	lis	r13,[EMAIL PROTECTED]
+	addi	r13,r13,[EMAIL PROTECTED]
+#endif
 	/* Set up an initial stack frame, and clear the LR.  */
 	li	r0,0
 	stwu	r1,-16(r1)
_______________________________________________
Toolchain-commits mailing list
Toolchain-commits@blackfin.uclinux.org
http://blackfin.uclinux.org/mailman/listinfo/toolchain-commits

Reply via email to