diff options
| author | Jean-Sébastien Pédron <dumbbell@FreeBSD.org> | 2022-12-01 13:59:16 +0000 |
|---|---|---|
| committer | Emmanuel Vadot <manu@FreeBSD.org> | 2022-12-01 13:59:16 +0000 |
| commit | e79a57d4ecb73b7e779260b80f7b747eb29ce4d2 (patch) | |
| tree | 2a0fb3e4eb303ddfec083f3466b7d6c63239fc7f | |
| parent | 18e411233722088400624f21b66eb6687ebe8861 (diff) | |
linuxkpi: Add `cmpxchg64()` in <asm/atomic.h>
Differential Revision: https://reviews.freebsd.org/D36966
| -rw-r--r-- | sys/compat/linuxkpi/common/include/asm/atomic.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/asm/atomic.h b/sys/compat/linuxkpi/common/include/asm/atomic.h index b4154274f3f8..bdd02e0e4f55 100644 --- a/sys/compat/linuxkpi/common/include/asm/atomic.h +++ b/sys/compat/linuxkpi/common/include/asm/atomic.h @@ -218,6 +218,7 @@ atomic_cmpxchg(atomic_t *v, int old, int new) __ret.val; \ }) +#define cmpxchg64(...) cmpxchg(__VA_ARGS__) #define cmpxchg_relaxed(...) cmpxchg(__VA_ARGS__) #define xchg(ptr, new) ({ \ |
