Page MenuHomeFreeBSD

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

Authored by jhb on Nov 15 2024, 8:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 19, 4:17 PM
Unknown Object (File)
Sun, Apr 19, 4:16 PM
Unknown Object (File)
Sat, Apr 18, 2:02 AM
Unknown Object (File)
Fri, Apr 17, 11:56 PM
Unknown Object (File)
Fri, Apr 17, 11:23 PM
Unknown Object (File)
Wed, Apr 15, 9:25 PM
Unknown Object (File)
Sun, Apr 5, 5:08 AM
Unknown Object (File)
Mar 9 2026, 2:31 AM

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.Nov 15 2024, 8:40 PM
This revision is now accepted and ready to land.Nov 16 2024, 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.