Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Dec 2018 10:30:09 +0000 (UTC)
From:      Michal Meloun <mmel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r342077 - stable/12/sys/arm/include
Message-ID:  <201812141030.wBEAU9de062824@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmel
Date: Fri Dec 14 10:30:09 2018
New Revision: 342077
URL: https://svnweb.freebsd.org/changeset/base/342077

Log:
  MFC r341679:
  
    Fix cut&paste typo in atomic_fetchadd_64().

Modified:
  stable/12/sys/arm/include/atomic-v6.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/arm/include/atomic-v6.h
==============================================================================
--- stable/12/sys/arm/include/atomic-v6.h	Fri Dec 14 10:26:17 2018	(r342076)
+++ stable/12/sys/arm/include/atomic-v6.h	Fri Dec 14 10:30:09 2018	(r342077)
@@ -435,7 +435,7 @@ atomic_fetchadd_64(volatile uint64_t *p, uint64_t val)
 
 	__asm __volatile(
 	    "1:							\n"
-	    "   ldrexd	%Q[tmp], %R[tmp], [%[ptr]]		\n"
+	    "   ldrexd	%Q[ret], %R[ret], [%[ptr]]		\n"
 	    "   adds	%Q[tmp], %Q[ret], %Q[val]		\n"
 	    "   adc	%R[tmp], %R[ret], %R[val]		\n"
 	    "   strexd	%[exf], %Q[tmp], %R[tmp], [%[ptr]]	\n"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812141030.wBEAU9de062824>