HomeFreeBSD

Provide generic sub-word atomic *cmpset

Description

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)

Details

Provenance
kevansAuthored on Oct 2 2019, 5:06 PM
Parents
rGaf147ed09aa4: sys/dev/cfi: include sys/types.h as well
Branches
Unknown
Tags
Unknown