#include <urcu/compiler.h>
#include <urcu/config.h>
+#include <urcu/syscall-compat.h>
#ifdef __cplusplus
extern "C" {
-#endif
+#endif
/* Include size of POWER5+ L3 cache lines: 256 bytes */
#define CAA_CACHE_LINE_SIZE 256
rval; \
})
+#define HAS_CAA_GET_CYCLES
+
typedef unsigned long long cycles_t;
#ifdef __powerpc64__
}
#endif
-#ifdef __cplusplus
+/*
+ * Define the membarrier system call number if not yet available in the
+ * system headers.
+ */
+#ifndef __NR_membarrier
+#define __NR_membarrier 365
+#endif
+
+#ifdef __cplusplus
}
#endif