#include <linux/types.h>
#include <asm/ia64regs.h>
#include <asm/gcc_intrin.h>
Go to the source code of this file.
|
| #define | __xchg(x, ptr, size) |
| |
| #define | xchg(ptr, x) ((__typeof__(*(ptr))) __xchg((unsigned long) (x), (ptr), sizeof(*(ptr)))) |
| |
| #define | __HAVE_ARCH_CMPXCHG 1 |
| |
| #define | ia64_cmpxchg(sem, ptr, old, new, size) |
| |
| #define | cmpxchg_acq(ptr, o, n) ia64_cmpxchg(acq, (ptr), (o), (n), sizeof(*(ptr))) |
| |
| #define | cmpxchg_rel(ptr, o, n) ia64_cmpxchg(rel, (ptr), (o), (n), sizeof(*(ptr))) |
| |
| #define | cmpxchg(ptr, o, n) cmpxchg_acq((ptr), (o), (n)) |
| |
| #define | cmpxchg64(ptr, o, n) cmpxchg_acq((ptr), (o), (n)) |
| |
| #define | cmpxchg_local cmpxchg |
| |
| #define | cmpxchg64_local cmpxchg64 |
| |
| #define | CMPXCHG_BUGCHECK_DECL |
| |
| #define | CMPXCHG_BUGCHECK(v) |
| |
| #define __HAVE_ARCH_CMPXCHG 1 |
Value:({ \
unsigned long __xchg_result; \
\
case 1: \
break; \
\
case 2: \
break; \
\
case 4: \
break; \
\
case 8: \
break; \
default: \
ia64_xchg_called_with_bad_pointer(); \
} \
__xchg_result; \
})
Definition at line 29 of file cmpxchg.h.
| #define CMPXCHG_BUGCHECK |
( |
|
v | ) |
|
| #define CMPXCHG_BUGCHECK_DECL |
| long ia64_cmpxchg_called_with_bad_pointer |
( |
void |
| ) |
|
| void ia64_xchg_called_with_bad_pointer |
( |
void |
| ) |
|