From patchwork Mon Nov 24 22:26:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Blanchard X-Patchwork-Id: 414127 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C9F6E1400DE for ; Tue, 25 Nov 2014 09:26:47 +1100 (AEDT) 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:cc:subject:date:message-id; q=dns; s= default; b=SDWyoV5b45E8hJLi/KVTmpDXbDoZv0ACrFZgPqHZaAXc4lCJACPSe kLHGWEuGGWUOwiMDm+9W3GlOFs/3Yjh5N8VmnkYo+ROP97GSnaHu6f8P+KgGZQoz HXSb9LRflSJlaXiwE5xc25QRaF1DXCiceTKmQf+aWrV0LmwWT4GU9I= 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:cc:subject:date:message-id; s=default; bh=GWJjpZA6ueflA0fpUb5hJDenXTA=; b=Mrj1SkQUz7Tl6CpDVaOksTymLgQ1 kngH7u/rgkeAj9855LY7VDPTm2Ew9331bevaoLUpZXkaqPeMc9UkeczxCVhpm/bC SESu4DMhyvtBALko6S9BVChntchUkFrCVP9x7OIFgaGZlYiQSKlB4kTAGATdW5Tj ZBhW19yixOjXq2g= Received: (qmail 23775 invoked by alias); 24 Nov 2014 22:26:42 -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 23764 invoked by uid 89); 24 Nov 2014 22:26:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: ozlabs.org From: Anton Blanchard To: azanella@linux.vnet.ibm.com Cc: libc-alpha@sourceware.org Subject: [PATCH] powerpc: Fix __arch_compare_and_exchange_bool_64_rel Date: Tue, 25 Nov 2014 09:26:34 +1100 Message-Id: <1416867994-6750-1-git-send-email-anton@samba.org> Fix a typo in the inline assembly. --- ChangeLog | 5 +++++ sysdeps/powerpc/powerpc64/bits/atomic.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dac4ad1..64e3a92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-11-25 Anton Blanchard + + * sysdeps/powerpc/bits/atomic.h + (__arch_compare_and_exchange_bool_64_rel): Load from mem. + 2014-11-24 Ryan Cumming [BZ #17608] diff --git a/sysdeps/powerpc/powerpc64/bits/atomic.h b/sysdeps/powerpc/powerpc64/bits/atomic.h index 5c4ebb6..83b5dfe 100644 --- a/sysdeps/powerpc/powerpc64/bits/atomic.h +++ b/sysdeps/powerpc/powerpc64/bits/atomic.h @@ -100,7 +100,7 @@ ({ \ unsigned long __tmp; \ __asm __volatile (__ARCH_REL_INSTR "\n" \ - "1: ldarx %0,0,%2" MUTEX_HINT_REL "\n" \ + "1: ldarx %0,0,%1" MUTEX_HINT_REL "\n" \ " subf. %0,%2,%0\n" \ " bne 2f\n" \ " stdcx. %3,0,%1\n" \