svn commit: r313341 - head/sys/mips/include
Alexander Kabaev
kan at FreeBSD.org
Mon Feb 6 14:00:30 UTC 2017
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)
More information about the svn-src-all
mailing list