#include <urcu/compiler.h>
#include <urcu/config.h>
+#include <urcu/syscall-compat.h>
#ifdef __cplusplus
extern "C" {
#define cmm_mb() __asm__ __volatile__("bcr 15,0" : : : "memory")
+#define HAS_CAA_GET_CYCLES
+
typedef unsigned long long cycles_t;
static inline cycles_t caa_get_cycles (void)
return cycles;
}
+/*
+ * Define the membarrier system call number if not yet available in the
+ * system headers.
+ */
+#ifndef __NR_membarrier
+#define __NR_membarrier 356
+#endif
+
#ifdef __cplusplus
}
#endif