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)
Jan 17 2024, 6:00 AM
Unknown Object (File)
Jan 12 2024, 8:28 AM
Unknown Object (File)
Dec 20 2023, 8:12 AM
Unknown Object (File)
Nov 30 2023, 5:41 AM
Unknown Object (File)
Nov 24 2023, 8:09 PM
Unknown Object (File)
Nov 12 2023, 11:42 PM
Unknown Object (File)
Oct 13 2023, 10:11 AM
Unknown Object (File)
Oct 12 2023, 11:13 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.