aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2016-05-02 17:44:00 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2016-05-02 17:44:00 -0300
commit230528c467ee5ae7b55d41530bbb10fd94da948f (patch)
tree9398b53bd3c8bd8e4a771bd71f81639a21ab7d6d /sysdeps
parent8a03ccbb77f52ec4b55062eeedddb8daec1a33e4 (diff)
downloadglibc-230528c467ee5ae7b55d41530bbb10fd94da948f.zip
glibc-230528c467ee5ae7b55d41530bbb10fd94da948f.tar.gz
glibc-230528c467ee5ae7b55d41530bbb10fd94da948f.tar.bz2
powerpc: Fix clone CLONE_VM compare
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.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S b/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S
index 9d496f0..bebadbf 100644
--- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S
+++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S
@@ -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))