]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
.I think this code is more correct.
authorUlrich Drepper <drepper@redhat.com>
Wed, 15 Dec 2004 09:14:28 +0000 (09:14 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 15 Dec 2004 09:14:28 +0000 (09:14 +0000)
sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S

index be069c90c81528ebcdb3df2e9f74dccd57a1be77..61a35a2f7928173a7cea9430cec1266b0d3e90ae 100644 (file)
@@ -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))