projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7d4559
)
new information...x86 allows reads to be reordered with earlier writes to different...
author
bdemsky
<bdemsky>
Sat, 2 Apr 2011 22:49:40 +0000
(22:49 +0000)
committer
bdemsky
<bdemsky>
Sat, 2 Apr 2011 22:49:40 +0000
(22:49 +0000)
add mbarrier for situations where we can't allow this to happen...
Robust/src/Runtime/mlp_lock.h
patch
|
blob
|
history
diff --git
a/Robust/src/Runtime/mlp_lock.h
b/Robust/src/Runtime/mlp_lock.h
index 46d8a930797aa9e482a0638ea30f7ccc65ebdf52..57bd18ad1f9335c123225eef5718973877a87431 100644
(file)
--- a/
Robust/src/Runtime/mlp_lock.h
+++ b/
Robust/src/Runtime/mlp_lock.h
@@
-11,6
+11,7
@@
#define __xg(x) ((volatile INTPTR *)(x))
#define CFENCE asm volatile("":::"memory");
+#define MFENCE asm volatile("mfence":::"memory");
#define LOCK_PREFIX \
".section .smp_locks,\"a\"\n" \
@@
-117,5
+118,10
@@
static inline int BARRIER(){
return 1;
}
+static inline int MBARRIER(){
+ MFENCE;
+ return 1;
+}
+
#endif // ____MLP_LOCK_H__