diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2009-04-03 22:27:31 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2009-04-03 22:27:31 +0000 |
commit | 051f7595ff6712ff18b7b9cb0890080bd85bfe5f (patch) | |
tree | 6f04317288d48e0ed6e5246c8a3b48e44c496b27 /libgloss/spu | |
parent | 823f6f665576bb98c3842a51b0cbd174f19ddf9c (diff) | |
download | newlib-051f7595ff6712ff18b7b9cb0890080bd85bfe5f.zip newlib-051f7595ff6712ff18b7b9cb0890080bd85bfe5f.tar.gz newlib-051f7595ff6712ff18b7b9cb0890080bd85bfe5f.tar.bz2 |
2009-04-03 Ken Werner <ken.werner@de.ibm.com>
* spu/crt0.S (_start): Place spu_id in the first agument register.
Diffstat (limited to 'libgloss/spu')
-rw-r--r-- | libgloss/spu/crt0.S | 6 |
1 files changed, 5 insertions, 1 deletions
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 |