projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: move generic caa_get_cycles to arch/generic.h
[urcu.git]
/
urcu
/
arch
/
s390.h
diff --git
a/urcu/arch/s390.h
b/urcu/arch/s390.h
index 5985b2014d78513d1eb010fa33edf93f70df1b36..86a0a3689244b1ec2f9772fcda5a1093138aec2f 100644
(file)
--- a/
urcu/arch/s390.h
+++ b/
urcu/arch/s390.h
@@
-30,6
+30,7
@@
#include <urcu/compiler.h>
#include <urcu/config.h>
#include <urcu/compiler.h>
#include <urcu/config.h>
+#include <urcu/syscall-compat.h>
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
extern "C" {
@@
-39,6
+40,8
@@
extern "C" {
#define cmm_mb() __asm__ __volatile__("bcr 15,0" : : : "memory")
#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)
typedef unsigned long long cycles_t;
static inline cycles_t caa_get_cycles (void)
@@
-50,6
+53,14
@@
static inline cycles_t caa_get_cycles (void)
return cycles;
}
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
#ifdef __cplusplus
}
#endif
This page took
0.023057 seconds
and
4
git commands to generate.