Fix asm constraints for atomic_cmpset_32. This fix may also be needed

elsewhere.
This commit is contained in:
benno 2001-06-24 06:36:28 +00:00
parent f8016646a9
commit b55c34215e

View File

@ -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");