]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Provide generic sub-word atomic *cmpset
authorKyle Evans <kevans@FreeBSD.org>
Wed, 2 Oct 2019 17:06:28 +0000 (17:06 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Thu, 7 Oct 2021 03:27:26 +0000 (22:27 -0500)
commit0c0fe8a6ff8b01018aa2c0f5a93d4dd52da0dfcd
tree77db875a388d1a6ebdeb807b5cb3450c3876dd0e
parentaf147ed09aa4d346b8526fb40a7016800664d33c
Provide generic sub-word atomic *cmpset

Provide *cmpset_{8,16} as wrappers around atomic_fcmpset_32. Initial users
will be mips and sparc64, and perhaps parts of powerpc.

This are not for general consumption; machine/atomic.h should include this
header as needed to provide atomic_{,f}cmpset_{8,16} and machine/atomic.h
should provide acq_ and rel_ variants.

(cherry picked from commit b6c5d1ef76cdcfe2103fd2ed8ef8f97e1c740edc)
sys/sys/_atomic_subword.h [new file with mode: 0644]