Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Feb 2017 14:00:28 +0000 (UTC)
From:      Alexander Kabaev <kan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r313341 - head/sys/mips/include
Message-ID:  <201702061400.v16E0Sb5091364@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kan
Date: Mon Feb  6 14:00:28 2017
New Revision: 313341
URL: https://svnweb.freebsd.org/changeset/base/313341

Log:
  Use 64bit store instruction in atomic_fcmpset_64.
  
  Reported by: br

Modified:
  head/sys/mips/include/atomic.h

Modified: head/sys/mips/include/atomic.h
==============================================================================
--- head/sys/mips/include/atomic.h	Mon Feb  6 13:32:22 2017	(r313340)
+++ head/sys/mips/include/atomic.h	Mon Feb  6 14:00:28 2017	(r313341)
@@ -529,7 +529,7 @@ atomic_fcmpset_64(__volatile uint64_t *p
                 "beqz	%0, 1b\n\t"		/* if it failed, spin */
                 "j	3f\n\t"
                 "2:\n\t"
-                "sw	%0, %2\n\t"		/* save old value */
+                "sd	%0, %2\n\t"		/* save old value */
                 "li	%0, 0\n\t"
                 "3:\n"
                 : "=&r" (ret), "+m" (*p), "=m" (*cmpval)



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