From: Ulrich Drepper Date: Wed, 15 Dec 2004 09:14:28 +0000 (+0000) Subject: .I think this code is more correct. X-Git-Tag: upstream/2.20~10095 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f05a41ebd3865694bfec31b385f661d23272296f;p=platform%2Fupstream%2Flinaro-glibc.git .I think this code is more correct. --- diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S b/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S index be069c9..61a35a2 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S @@ -92,9 +92,9 @@ ENTRY (BP_SYM (__clone)) mr r1,r30 #ifdef RESET_PID - andis. r0,r28,1 /* This is & CLONE_THREAD */ + rldicl. r0,r28,48,63 /* This is & CLONE_THREAD */ bne+ r0,L(oldpid) - andi. r0,r28,CLONE_VM + rldicl. r0,r28,56,63 /* This is & CLONE_VM */ li r3,-1 bne- r0,L(nomoregetpid) DO_CALL(SYS_ify(getpid))