From patchwork Mon May 2 20:48:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 67048 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp245239qge; Mon, 2 May 2016 13:48:54 -0700 (PDT) X-Received: by 10.66.90.136 with SMTP id bw8mr54757113pab.52.1462222134143; Mon, 02 May 2016 13:48:54 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id y66si639pfy.88.2016.05.02.13.48.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 May 2016 13:48:54 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-69302-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-69302-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-69302-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=cS8LhzmqAZR6Ysc/MOQxgPDuolFID3LWrVUARfXhaNLdkKWEx9oLZ RD6SPWuTKoRHuTAdnJCFMXzt3sV89UJrAr47SYg46y0EV3duuFS4rfsgRgBzYsUy /595fIKpnZu5pKyzWGUap8It9De4pM7mAwc1lHXIX7adokJr8au8Zk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=nKfbnYAoCskC2EVflEeDuYpAMvc=; b=vbuD2XbqJvp3vn8Tko+lQ2xl1EjC rywXPn00zkSmxeZxj6bDfXUrU25ifxUZ3oBrHQLPumeV17hBU11t51IkHLHtJVml fhpCGnIRQ+upHVtl45Lu2SRdo5+/HUZdTXegFIhApyW1Yw2gxv+M9cpjyTj9pJz7 JUcHe5TAj7RrEUY= Received: (qmail 17325 invoked by alias); 2 May 2016 20:48:36 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 17278 invoked by uid 89); 2 May 2016 20:48:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-yw0-f181.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=kWz7WrpSuLfwSaMQVHDciZCRgs7R8saf77ddBDQ0oZU=; b=kGW0jMQ57oiyXa01vVOpx3/FMwVZ3EmeoDMJpkjAyLIT5uAmjrie7aeEeUa1QljYZK Rs7X+Bn27r6MDCAqIVsWHkcDhZqfBrD9VW1Y8jVDWXWQgAv7iYoFO0SBo+/QhqxHCYFE jyd1do4mFDlX+7Lk57pVadDE1LKThx7Te5y15Pq8xpAgolWdEJeP3cjQJ+cVNJC8D/rS cJovrJvlVrLVUnCcHefBcTL9o69LSCU2yaOp0zmjAsFq8GtJ2fQG8p84n8kmz2kb9Try KSJxSZAD7nkE54P++wgddqKNVF3cc4GM3lLIwRWSC3VnL0s7hYiq9OMsOMTOeZiKpM4S IJhQ== X-Gm-Message-State: AOPr4FUIc1OsiYrGvUGrN4waczaxQRT3XNfghsWirYjw6LrvAYvoWlrM1FnmPUlBzinV/B87 X-Received: by 10.37.111.215 with SMTP id k206mr20570548ybc.47.1462222100097; Mon, 02 May 2016 13:48:20 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [COMMITTED] powerpc: Fix clone CLONE_VM compare Date: Mon, 2 May 2016 17:48:12 -0300 Message-Id: <1462222092-12957-1-git-send-email-adhemerval.zanella@linaro.org> 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 | 5 +++++ sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) -- 2.7.4 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))