Page MenuHomeFreeBSD

linuxkpi: Add `cmpxchg64()` in <asm/atomic.h>
ClosedPublic

Authored by dumbbell on Oct 12 2022, 7:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 1:17 PM
Unknown Object (File)
Tue, Nov 12, 1:02 PM
Unknown Object (File)
Sun, Oct 20, 11:49 AM
Unknown Object (File)
Oct 13 2024, 11:05 AM
Unknown Object (File)
Sep 25 2024, 4:17 AM
Unknown Object (File)
Sep 22 2024, 1:33 PM
Unknown Object (File)
Sep 17 2024, 9:44 AM
Unknown Object (File)
Sep 5 2024, 6:11 AM

Details

Summary

I defined it as an alias to cmpxchg(), not sure it is correct...

Diff Detail

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

Event Timeline

I'm not sure about making cmpxchg64() an alias of cmpxchg(). It will probably break on 32bit archs.

I'm not sure about making cmpxchg64() an alias of cmpxchg(). It will probably break on 32bit archs.

I think so too.

hselasky added inline comments.
sys/compat/linuxkpi/common/include/asm/atomic.h
221

It's only defined for selected platforms. And will compile time assert if not present!

Should be OK.

manu added inline comments.
sys/compat/linuxkpi/common/include/asm/atomic.h
221

Yes indeed.

This revision is now accepted and ready to land.Dec 1 2022, 1:26 PM
This revision was automatically updated to reflect the committed changes.