]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
powerpc: Fix clone CLONE_VM compare
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 2 May 2016 20:44:00 +0000 (17:44 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 2 May 2016 20:44:00 +0000 (17:44 -0300)
This patch fixes the clone CLONE_VM change from 0cb313f (BZ#19957)
where the commit changed the register that contains the save flags
argument to compare with (from r28 to r29).  This patch changes
back to correct register.

Tested on powerpc32 (thanks to Tulio Magno Quites Machado Filho).

* sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
flags CLONE_VM compare.

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

index d7044ea43da2dab02e1aa43e6d04ac75da3ac0fd..26284bdc43826fb4e4d6d90b10c8f5bdc820426a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
+       flags CLONE_VM compare.
+
 2016-05-02  Florian Weimer  <fweimer@redhat.com>
 
        [BZ #20031]
index 9d496f0a4cc2620c974f5a9d8a91b323467bd5b0..bebadbfbb9c15e115a0e755ce8b2a917878634ab 100644 (file)
@@ -77,7 +77,7 @@ ENTRY (__clone)
        bne-    cr1,L(parent)           /* The '-' is to minimise the race.  */
 
        /* If CLONE_VM is set do not update the pid/tid field.  */
-       andi.   r0,r29,CLONE_VM
+       andi.   r0,r28,CLONE_VM
        bne+    cr0,L(oldpid)
 
        DO_CALL(SYS_ify(getpid))