diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index 1d913aaa5..48b5c3b23 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -1,3 +1,7 @@ +2009-04-03 Ken Werner + + * spu/crt0.S (_start): Place spu_id in the first agument register. + 2009-03-16 Jeff Johnston * m32r/m32r-stub.c: Replace with one from newer version of gdb. diff --git a/libgloss/spu/crt0.S b/libgloss/spu/crt0.S index 39ae588c3..4c4bac660 100644 --- a/libgloss/spu/crt0.S +++ b/libgloss/spu/crt0.S @@ -161,9 +161,13 @@ _start: #ifdef _PROFILE /* Call monstartup if profiling is enabled */ +#ifdef _STD_MAIN + ila $3,0 +#else + ori $3,$80,0 +#endif brsl $LR, __monstartup #endif - ori $3,$80,0 ori $4,$81,0 #ifndef _STD_MAIN