#include <linux/compiler.h>
#include <linux/types.h>
#include <asm/cmpxchg-irq.h>
Go to the source code of this file.
#define __HAVE_ARCH_CMPXCHG 1 |
Value:({ \
unsigned long __xchg__res; \
volatile
void *__xchg_ptr = (
ptr); \
case 4: \
__xchg__res = xchg_u32(__xchg_ptr,
x); \
break; \
case 1: \
__xchg__res = xchg_u8(__xchg_ptr,
x); \
break; \
default: \
__xchg_called_with_bad_pointer(); \
break; \
} \
\
__xchg__res; \
})
Definition at line 22 of file cmpxchg.h.
#define cmpxchg |
( |
|
ptr, |
|
|
|
o, |
|
|
|
n |
|
) |
| |
Value:({ \
__typeof__(*(
ptr)) _o_ = (o); \
__typeof__(*(
ptr)) _n_ = (
n); \
(
unsigned long)_n_,
sizeof(*(ptr))); \
})
Definition at line 62 of file cmpxchg.h.
void __cmpxchg_called_with_bad_pointer |
( |
void |
| ) |
|
void __xchg_called_with_bad_pointer |
( |
void |
| ) |
|