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
F111335969: D47631.id146696.diff
Sun, Mar 2, 12:58 PM
F111324964: D47631.id146696.diff
Sun, Mar 2, 9:23 AM
Unknown Object (File)
Wed, Feb 12, 5:27 AM
Unknown Object (File)
Jan 9 2025, 5:48 AM
Unknown Object (File)
Dec 19 2024, 2:28 AM
Unknown Object (File)
Dec 18 2024, 1:18 PM
Unknown Object (File)
Dec 18 2024, 3:26 AM
Unknown Object (File)
Dec 2 2024, 8:55 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 60623
Build 57507: arc lint + arc unit

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.