This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]