projects
/
urcu.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
[urcu.git]
/
arch_x86.h
diff --git
a/arch_x86.h
b/arch_x86.h
index cc3ab012c557f38db5df6c7b5c829a13ceaf511a..e7d945e3859393edece5eb4b2aee4c99538083e2 100644
(file)
--- a/
arch_x86.h
+++ b/
arch_x86.h
@@
-84,10
+84,9
@@
/* Nop everywhere except on alpha. */
#define smp_read_barrier_depends()
/* Nop everywhere except on alpha. */
#define smp_read_barrier_depends()
-/* REP NOP (PAUSE) is a good thing to insert into busy-wait loops. */
static inline void rep_nop(void)
{
static inline void rep_nop(void)
{
- asm volatile("rep; nop" :
:
: "memory");
+ asm volatile("rep; nop" :
:
: "memory");
}
static inline void cpu_relax(void)
}
static inline void cpu_relax(void)
@@
-95,6
+94,14
@@
static inline void cpu_relax(void)
rep_nop();
}
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.026875 seconds
and
4
git commands to generate.