aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/x86_64
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2010-12-16 19:29:08 +0000
committerKeir Fraser <keir@xen.org>2010-12-16 19:29:08 +0000
commitd24d88e65518211116d166787feff5f6c5711738 (patch)
tree967319b9f73244f2b0130a00f9d2daae77861538 /xen/include/asm-x86/x86_64
parent49f09d64e40b5e3c689592abd3e457dd4a7cff5d (diff)
downloadxen-d24d88e65518211116d166787feff5f6c5711738.tar.gz
xen-d24d88e65518211116d166787feff5f6c5711738.tar.bz2
xen-d24d88e65518211116d166787feff5f6c5711738.zip
x86: Define atomic_{read,write}{8,16,32,64} accessor functions.
These absolutely guarantee to read/write a uint*_t with a single atomic processor instruction. Also re-define atomic_read/atomic_write (act on atomic_t) similarly. Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/asm-x86/x86_64')
-rw-r--r--xen/include/asm-x86/x86_64/system.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/xen/include/asm-x86/x86_64/system.h b/xen/include/asm-x86/x86_64/system.h
index 3d0a294e3a..4f183c0535 100644
--- a/xen/include/asm-x86/x86_64/system.h
+++ b/xen/include/asm-x86/x86_64/system.h
@@ -47,11 +47,6 @@
_rc; \
})
-static inline void atomic_write64(uint64_t *p, uint64_t v)
-{
- *p = v;
-}
-
#define mb() \
asm volatile ( "mfence" : : : "memory" )