diff options
-rw-r--r-- | sys/amd64/include/atomic.h | 4 | ||||
-rw-r--r-- | sys/i386/include/atomic.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/include/atomic.h b/sys/amd64/include/atomic.h index 9e72c49..b5035b89e 100644 --- a/sys/amd64/include/atomic.h +++ b/sys/amd64/include/atomic.h @@ -182,9 +182,9 @@ atomic_load_acq_##TYPE(volatile u_##TYPE *p) \ u_##TYPE res; \ \ __asm __volatile(MPLOCKED LOP \ - : "+a" (res), /* 0 (result) */\ + : "=a" (res), /* 0 (result) */\ "+m" (*p) /* 1 */ \ - : : "memory"); \ + : : "cc", "memory"); \ \ return (res); \ } \ diff --git a/sys/i386/include/atomic.h b/sys/i386/include/atomic.h index 9e72c49..b5035b89e 100644 --- a/sys/i386/include/atomic.h +++ b/sys/i386/include/atomic.h @@ -182,9 +182,9 @@ atomic_load_acq_##TYPE(volatile u_##TYPE *p) \ u_##TYPE res; \ \ __asm __volatile(MPLOCKED LOP \ - : "+a" (res), /* 0 (result) */\ + : "=a" (res), /* 0 (result) */\ "+m" (*p) /* 1 */ \ - : : "memory"); \ + : : "cc", "memory"); \ \ return (res); \ } \ |