Date: Tue, 15 Oct 2019 03:37:21 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r353536 - head/sys/powerpc/include Message-ID: <201910150337.x9F3bLMT022942@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910150337.x9F3bLMT022942>