aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-ia64/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'xen/include/asm-ia64/config.h')
-rw-r--r--xen/include/asm-ia64/config.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/xen/include/asm-ia64/config.h b/xen/include/asm-ia64/config.h
index 442d49a382..9df0d907aa 100644
--- a/xen/include/asm-ia64/config.h
+++ b/xen/include/asm-ia64/config.h
@@ -177,8 +177,7 @@ void sort_main_extable(void);
// see include/asm-x86/atomic.h (different from standard linux)
#define _atomic_set(v,i) (((v).counter) = (i))
#define _atomic_read(v) ((v).counter)
-// FIXME following needs work
-#define atomic_compareandswap(old, new, v) old
+#define atomic_compareandswap(old, new, v) ((atomic_t){ cmpxchg(v, _atomic_read(old), _atomic_read(new)) })
// see include/asm-ia64/mm.h, handle remaining pfn_info uses until gone
#define pfn_info page
@@ -227,6 +226,8 @@ struct screen_info { };
#define FORCE_CRASH() asm("break 0;;");
+#define dummy() dummy_called(__FUNCTION__)
+
// these declarations got moved at some point, find a better place for them
extern int ht_per_core;