From: Jakub Jelinek Date: Wed, 15 Dec 2004 11:35:12 +0000 (+0000) Subject: * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone): Save X-Git-Tag: cvs/fedora-glibc-2_3_3-93~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b77676c2fdf0c3b5e94963f5fd6fa20295d4ce1;p=thirdparty%2Fglibc.git * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone): Save and restore r2 around call to fn. --- diff --git a/ChangeLog b/ChangeLog index 5a7189140d0..03843fc1fa2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-12-15 Jakub Jelinek + + * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone): Save + and restore r2 around call to fn. + 2004-09-08 H.J. Lu * Makeconfig (libunwind): New. diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S b/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S index 61a35a2f792..f6ce1150771 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S @@ -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)