x86: allocate membarrier system call number
[urcu.git] / urcu / arch / alpha.h
index 300213e2ba616d9e35b8e3a6c33a110d1a08c474..f4ef3d7d7fed66578011bc4e3700dfca0c0f219c 100644 (file)
 
 #include <urcu/compiler.h>
 #include <urcu/config.h>
+#include <urcu/syscall-compat.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#define cmm_mb()                       asm volatile("mb":::"memory")
-#define cmm_wmb()                      asm volatile("wmb":::"memory")
-#define cmm_read_barrier_depends()     asm volatile("mb":::"memory")
+#define cmm_mb()                       __asm__ __volatile__ ("mb":::"memory")
+#define cmm_wmb()                      __asm__ __volatile__ ("wmb":::"memory")
+#define cmm_read_barrier_depends()     __asm__ __volatile__ ("mb":::"memory")
 
 typedef unsigned long long cycles_t;
 
This page took 0.022905 seconds and 4 git commands to generate.