[PATCH] spu correctly set element one of register one
Jeff Johnston
jjohnstn@redhat.com
Thu Oct 11 23:27:00 GMT 2007
Patch applied.
-- Jeff J.
Patrick Mansfield wrote:
> 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.
More information about the Newlib
mailing list