1
1

opal/asm/arm64: Fix opal_atomic_compare_exchange_* bug

Signed-off-by: KAWASHIMA Takahiro <t-kawashima@jp.fujitsu.com>
Этот коммит содержится в:
KAWASHIMA Takahiro 2017-12-05 15:57:29 +09:00
родитель 2c86b8723d
Коммит 08254e8b12

Просмотреть файл

@ -201,7 +201,7 @@ static inline bool opal_atomic_compare_exchange_strong_64 (volatile int64_t *add
: "r" (addr), "r" (*oldval), "r" (newval)
: "cc", "memory");
ret = (prev == oldval);
ret = (prev == *oldval);
*oldval = prev;
return ret;
}
@ -242,7 +242,7 @@ static inline bool opal_atomic_compare_exchange_strong_acq_64 (volatile int64_t
: "r" (addr), "r" (*oldval), "r" (newval)
: "cc", "memory");
ret = (prev == oldval);
ret = (prev == *oldval);
*oldval = prev;
return ret;
}
@ -264,7 +264,7 @@ static inline bool opal_atomic_compare_exchange_strong_rel_64 (volatile int64_t
: "r" (addr), "r" (*oldval), "r" (newval)
: "cc", "memory");
ret = (prev == oldval);
ret = (prev == *oldval);
*oldval = prev;
return ret;
}