projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
s390: uatomic add missing inline and other { }
[urcu.git]
/
urcu
/
arch_s390.h
diff --git
a/urcu/arch_s390.h
b/urcu/arch_s390.h
index bf46d3b56e6b660b0868eade0dec1ccf42a0fa69..9d3d452b961b3dd3e74a99147a2b6012688685d0 100644
(file)
--- a/
urcu/arch_s390.h
+++ b/
urcu/arch_s390.h
@@
-1,5
+1,5
@@
-#ifndef _ARCH_S390_H
-#define _ARCH_S390_H
+#ifndef _
URCU_
ARCH_S390_H
+#define _
URCU_
ARCH_S390_H
/*
* Trivial definitions for the S390 architecture based on information from the
/*
* Trivial definitions for the S390 architecture based on information from the
@@
-29,10
+29,20
@@
*/
#include <compiler.h>
*/
#include <compiler.h>
-#include <
config
/config.h>
+#include <
urcu
/config.h>
#define CONFIG_HAVE_MEM_COHERENCY
#define CONFIG_HAVE_MEM_COHERENCY
+#define CACHE_LINE_SIZE 128
+
+#ifndef __SIZEOF_LONG__
+#ifdef __s390x__
+#define __SIZEOF_LONG__ 8
+#else
+#define __SIZEOF_LONG__ 4
+#endif
+#endif
+
#ifndef BITS_PER_LONG
#define BITS_PER_LONG (__SIZEOF_LONG__ * 8)
#endif
#ifndef BITS_PER_LONG
#define BITS_PER_LONG (__SIZEOF_LONG__ * 8)
#endif
@@
-84,4
+94,4
@@
static inline cycles_t get_cycles (void)
return cycles;
}
return cycles;
}
-#endif /* _ARCH_S390_H */
+#endif /* _
URCU_
ARCH_S390_H */
This page took
0.024818 seconds
and
4
git commands to generate.