i386: fixup fcmpset

An incorrect output specifier was used which worked with clang by accident,
but breaks with the in-tree gcc version.

While here plug a whitespace nit.

Reported by:	bde
This commit is contained in:
Mateusz Guzik 2017-02-02 01:33:08 +00:00
parent 9f3de9e26d
commit ed869ff019
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313080

View File

@ -225,9 +225,9 @@ atomic_fcmpset_int(volatile u_int *dst, u_int *expect, u_int src)
" cmpxchgl %3,%1 ; "
" sete %0 ; "
"# atomic_cmpset_int"
: "=r" (res), /* 0 */
: "=q" (res), /* 0 */
"+m" (*dst), /* 1 */
"+a" (*expect) /* 2 */
"+a" (*expect) /* 2 */
: "r" (src) /* 3 */
: "memory", "cc");
return (res);