]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
riscv: fix errors in some atomic type aliases
authorMitchell Horne <mhorne@FreeBSD.org>
Thu, 4 Mar 2021 17:52:45 +0000 (13:52 -0400)
committerMitchell Horne <mhorne@FreeBSD.org>
Thu, 4 Mar 2021 20:59:58 +0000 (16:59 -0400)
commit0d3b3beeb253e09b2b6b3805065594aecc7e2c2f
treec32967ef1eb081f191ad8720348fa64fbd91429f
parent19587d742264c5caec33d218e9cea6eb78f6c6bb
riscv: fix errors in some atomic type aliases

This appears to be a copy-and-paste error that has simply been
overlooked. The tree contains only two calls to any of the affected
variants, but recent additions to the test suite started exercising the
call to atomic_clear_rel_int() in ng_leave_write(), reliably causing
panics.

Apparently, the issue was inherited from the arm64 atomic header. That
instance was addressed in c90baf6817a0, but the fix did not make its way
to RISC-V.

Note that the particular test case ng_macfilter_test:main still appears
to fail on this platform, but this change reduces the panic to a
timeout.

PR: 253237
Reported by: Jenkins, arichardson
Reviewed by: kp, arichardson
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D29064
sys/riscv/include/atomic.h