]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc: Add atomic_testand_{set,clear}_{int,long}
authorJustin Hibbits <jhibbits@FreeBSD.org>
Fri, 14 Jan 2022 03:46:29 +0000 (21:46 -0600)
committerJustin Hibbits <jhibbits@FreeBSD.org>
Fri, 14 Jan 2022 03:46:52 +0000 (21:46 -0600)
commitb5d227b0b27adbb7b4db9f8f27a14df342344c50
tree0876fb1c9c6855c64a1c4098dc40f425c7a42a4b
parentdd694648ff0f1c33ea05d9eb63fdbec527b27836
powerpc: Add atomic_testand_{set,clear}_{int,long}

Add machine-optimized implementations for the following:
* atomic_testandset_int
* atomic_testandclear_int
* atomic_testandset_long
* atomic_testandclear_long

This fixes the build with ISA_206_ATOMICS enabled.
Add the associated atomic_testandset_32, atomic_testandclear_32, so
that ice(4) can potentially build.
sys/powerpc/include/atomic.h