svn commit: r353536 - head/sys/powerpc/include
Justin Hibbits
jhibbits at FreeBSD.org
Tue Oct 15 03:37:21 UTC 2019
Author: jhibbits
Date: Tue Oct 15 03:37:21 2019
New Revision: 353536
URL: https://svnweb.freebsd.org/changeset/base/353536
Log:
powerpc/atomic: Fix atomic_cmpset_rel()
Need a release barrier, not an acquire barrier, else bad things happen.
Modified:
head/sys/powerpc/include/atomic.h
Modified: head/sys/powerpc/include/atomic.h
==============================================================================
--- head/sys/powerpc/include/atomic.h Tue Oct 15 03:35:11 2019 (r353535)
+++ head/sys/powerpc/include/atomic.h Tue Oct 15 03:37:21 2019 (r353536)
@@ -682,7 +682,7 @@ atomic_cmpset_long(volatile u_long* p, u_long cmpval,
atomic_cmpset_rel_##type(volatile u_##type *p, \
u_##type cmpval, u_##type newval)\
{\
- __ATOMIC_ACQ();\
+ __ATOMIC_REL();\
return (atomic_cmpset_##type(p, cmpval, newval));\
}\
struct hack
More information about the svn-src-all
mailing list