summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbenno <benno@FreeBSD.org>2001-06-24 06:36:28 +0000
committerbenno <benno@FreeBSD.org>2001-06-24 06:36:28 +0000
commitb55c34215e7ddc6efd3734a362f198a17a4c2446 (patch)
treed05b3501529c8076c416ea575baea519c35b6816 /sys
parentf8016646a9c26afbad95d7ae2f1e61e133264b78 (diff)
downloadFreeBSD-src-b55c34215e7ddc6efd3734a362f198a17a4c2446.zip
FreeBSD-src-b55c34215e7ddc6efd3734a362f198a17a4c2446.tar.gz
Fix asm constraints for atomic_cmpset_32. This fix may also be needed
elsewhere.
Diffstat (limited to 'sys')
-rw-r--r--sys/powerpc/include/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/include/atomic.h b/sys/powerpc/include/atomic.h
index 619ca7e..1b7088b 100644
--- a/sys/powerpc/include/atomic.h
+++ b/sys/powerpc/include/atomic.h
@@ -347,7 +347,7 @@ atomic_cmpset_32(volatile u_int32_t* p, u_int32_t cmpval, u_int32_t newval)
"bne- 1b\n\t" /* spin if failed */
"eieio\n" /* memory barrier */
"2:\t\n"
- : "=r" (ret)
+ : "=&r" (ret)
: "r" (cmpval), "r" (newval), "r" (p)
: "memory");
OpenPOWER on IntegriCloud