I defined it as an alias to cmpxchg(), not sure it is correct...
Details
Details
- Reviewers
manu - Group Reviewers
linuxkpi - Commits
- rGe279c1fcfafb: linuxkpi: Add `cmpxchg64()` in <asm/atomic.h>
rGe79a57d4ecb7: linuxkpi: Add `cmpxchg64()` in <asm/atomic.h>
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
I'm not sure about making cmpxchg64() an alias of cmpxchg(). It will probably break on 32bit archs.
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. |
sys/compat/linuxkpi/common/include/asm/atomic.h | ||
---|---|---|
221 | Yes indeed. |