Page MenuHomeFreeBSD

atomic(9): Implement atomic_testand(clear|set)_ptr
ClosedPublic

Authored by jhb on Fri, Nov 15, 8:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 2, 8:55 AM
Unknown Object (File)
Fri, Nov 29, 9:05 PM
Unknown Object (File)
Tue, Nov 19, 4:14 PM
Unknown Object (File)
Mon, Nov 18, 6:56 AM
Unknown Object (File)
Sun, Nov 17, 11:09 PM
Unknown Object (File)
Sun, Nov 17, 5:34 PM
Unknown Object (File)
Sun, Nov 17, 5:20 PM
Unknown Object (File)
Sun, Nov 17, 2:24 PM

Details

Summary

For current architectures, these are just aliases for the existing
operation on the relevant scalar integer.

Obtained from: CheriBSD
Sponsored by: AFRL, DARPA

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Fri, Nov 15, 8:40 PM
This revision is now accepted and ready to land.Sat, Nov 16, 1:49 AM

All look good except I'm not so sure about 32bit powerpc

Should have noted that this passes make universe (and I've also booted it on some architectures).

sys/powerpc/include/atomic.h
1100

This matches the pattern of other 32-bit powerpc ops of using a cast instead of just mapping the macro directly.