projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ARM: use dmb for rmb and wmb in addition to mb
[urcu.git]
/
urcu
/
arch_arm.h
diff --git
a/urcu/arch_arm.h
b/urcu/arch_arm.h
index 125066b8239190b5be4580c11ba406a7baa8be7e..f97ae1d1d5979cde65920c4a95556a5dec73c223 100644
(file)
--- a/
urcu/arch_arm.h
+++ b/
urcu/arch_arm.h
@@
-1,8
+1,8
@@
-#ifndef _URCU_ARCH_ARM
V7L
_H
-#define _URCU_ARCH_ARM
V7L
_H
+#ifndef _URCU_ARCH_ARM_H
+#define _URCU_ARCH_ARM_H
/*
/*
- * arch_arm
v7l.h: trivial definitions for the ARMv7
architecture.
+ * arch_arm
.h: trivial definitions for the ARM
architecture.
*
* Copyright (c) 2010 Paul E. McKenney, IBM Corporation.
* Copyright (c) 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
* Copyright (c) 2010 Paul E. McKenney, IBM Corporation.
* Copyright (c) 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
@@
-29,7
+29,11
@@
extern "C" {
#endif
extern "C" {
#endif
-#define cmm_mb() asm volatile("dmb":::"memory")
+#ifdef CONFIG_ARM_HAVE_DMB
+#define cmm_mb() asm volatile("dmb":::"memory")
+#define cmm_rmb() asm volatile("dmb":::"memory")
+#define cmm_wmb() asm volatile("dmb":::"memory")
+#endif /* CONFIG_ARM_HAVE_DMB */
#include <stdlib.h>
#include <sys/time.h>
#include <stdlib.h>
#include <sys/time.h>
@@
-53,4
+57,4
@@
static inline cycles_t caa_get_cycles (void)
#include <urcu/arch_generic.h>
#include <urcu/arch_generic.h>
-#endif /* _URCU_ARCH_ARM
V7L
_H */
+#endif /* _URCU_ARCH_ARM_H */
This page took
0.023322 seconds
and
4
git commands to generate.