projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix urcu controldataflow model remote barriers
[userspace-rcu.git]
/
arch_x86.h
diff --git
a/arch_x86.h
b/arch_x86.h
index 9e0079d6a5a7fc8fee6e81e0ea26d80995446450..e7d945e3859393edece5eb4b2aee4c99538083e2 100644
(file)
--- a/
arch_x86.h
+++ b/
arch_x86.h
@@
-84,11
+84,24
@@
/* Nop everywhere except on alpha. */
#define smp_read_barrier_depends()
/* Nop everywhere except on alpha. */
#define smp_read_barrier_depends()
+static inline void rep_nop(void)
+{
+ asm volatile("rep; nop" : : : "memory");
+}
+
static inline void cpu_relax(void)
{
rep_nop();
}
static inline void cpu_relax(void)
{
rep_nop();
}
+/*
+ * Serialize core instruction execution. Also acts as a compiler barrier.
+ */
+static inline void sync_core(void)
+{
+ asm volatile("cpuid" : : : "memory", "eax", "ebx", "ecx", "edx");
+}
+
#define rdtscll(val) \
do { \
unsigned int __a, __d; \
#define rdtscll(val) \
do { \
unsigned int __a, __d; \
This page took
0.022949 seconds
and
4
git commands to generate.