]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone): Save
authorJakub Jelinek <jakub@redhat.com>
Wed, 15 Dec 2004 11:35:12 +0000 (11:35 +0000)
committerJakub Jelinek <jakub@redhat.com>
Wed, 15 Dec 2004 11:35:12 +0000 (11:35 +0000)
and restore r2 around call to fn.

ChangeLog
sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S

index 5a7189140d09030ee517efd0a361d4a79712eac4..03843fc1fa27fa62cd452b1ef1ebd0c40407d80f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 61a35a2f7928173a7cea9430cec1266b0d3e90ae..f6ce115077149c6ce390701eaa9a82b120620844 100644 (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)