From 051f7595ff6712ff18b7b9cb0890080bd85bfe5f Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 3 Apr 2009 22:27:31 +0000 Subject: 2009-04-03 Ken Werner * spu/crt0.S (_start): Place spu_id in the first agument register. --- libgloss/spu/crt0.S | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libgloss/spu') diff --git a/libgloss/spu/crt0.S b/libgloss/spu/crt0.S index 39ae588..4c4bac6 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 -- cgit v1.1