* sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone): Save

and restore r2 around call to fn.
This commit is contained in:
Jakub Jelinek 2004-12-15 11:35:12 +00:00
parent ac4d4092ac
commit 7b77676c2f
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-12-15 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone): Save
and restore r2 around call to fn.
2004-09-08 H.J. Lu <hongjiu.lu@intel.com>
* Makeconfig (libunwind): New.

View File

@ -104,12 +104,14 @@ L(nomoregetpid):
L(oldpid):
#endif
std r2,40(r1)
/* Call procedure. */
ld r0,0(r29)
ld r2,8(r29)
mtctr r0
mr r3,r31
bctrl
ld r2,40(r1)
/* Call _exit with result from procedure. */
#ifdef SHARED
b JUMPTARGET(__GI__exit)