Use 64bit store instruction in atomic_fcmpset_64.

Reported by: br
This commit is contained in:
Alexander Kabaev 2017-02-06 14:00:28 +00:00
parent c0d5237034
commit 7b6d9d0c3a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313341

View File

@ -529,7 +529,7 @@ atomic_fcmpset_64(__volatile uint64_t *p, uint64_t *cmpval, uint64_t newval)
"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)