This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] spu correctly set element one of register one
- From: Patrick Mansfield <patmans at us dot ibm dot com>
- To: newlib at sourceware dot org, Jeff Johnston <jjohnstn at redhat dot com>
- Date: Thu, 11 Oct 2007 11:08:56 -0700
- Subject: [PATCH] spu correctly set element one of register one
Fix to properly set element one of register one (stack pointer) correctly
for compilation and use with -stdmain and -fstack-check.
2007-10-08 Ulrich Weigand <uweigand@de.ibm.com>
* spu/crt0.S: Fix so element one of register one is correctly set
when compiled with -mstdmain and -fstack-check.
diff -urNp src-orig/libgloss/spu/crt0.S src/libgloss/spu/crt0.S
--- src-orig/libgloss/spu/crt0.S 2007-08-13 21:40:27.000000000 +0200
+++ src/libgloss/spu/crt0.S 2007-08-20 19:58:31.622005383 +0200
@@ -138,6 +138,7 @@ _start:
*/
ila $3,_end
sf $3,$3,$SP
+ rotqbyi $3,$3,12
/* The BE Linux ABI passes the stack size in $2, or use
* the default if $2 == 0.