atomic - fix inline assembly
[dragonfly.git] / sys / cpu / x86_64 / include / atomic.h
index cc543d3..b6d0b66 100644 (file)
@@ -331,12 +331,8 @@ atomic_intr_cond_try(__atomic_intr_t *p)
                         MPLOCKED "decl %0; "                   \
                         "movl $1,%%eax;"                       \
                         "2: ;"
-                        : "+m" (*p), "=a"(ret)
-#ifdef __clang__
-                         : : "ax", "cx", "dx");
-#else
+                        : "+m" (*p), "=&a"(ret)
                          : : "cx", "dx");
-#endif
        return (ret);
 }