about summary refs log tree commit diff
path: root/linuxthreads
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-04-02 22:28:27 +0000
committerUlrich Drepper <drepper@redhat.com>2002-04-02 22:28:27 +0000
commit5210321df82ded73fddff8c373d6e0ceb1651945 (patch)
treefd64fb85004a71e751848f948e90ca594cd1d541 /linuxthreads
parentdb6b51ada724d76d2d8a4b80dfbc20235fcdb0e7 (diff)
downloadglibc-5210321df82ded73fddff8c373d6e0ceb1651945.tar.gz
glibc-5210321df82ded73fddff8c373d6e0ceb1651945.tar.xz
glibc-5210321df82ded73fddff8c373d6e0ceb1651945.zip
(MEMORY_BARRIER): Define.
Diffstat (limited to 'linuxthreads')
-rw-r--r--linuxthreads/sysdeps/ia64/pt-machine.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/linuxthreads/sysdeps/ia64/pt-machine.h b/linuxthreads/sysdeps/ia64/pt-machine.h
index d3585ec35b..4c8bd0ecdc 100644
--- a/linuxthreads/sysdeps/ia64/pt-machine.h
+++ b/linuxthreads/sysdeps/ia64/pt-machine.h
@@ -65,6 +65,10 @@ register struct _pthread_descr_struct *__thread_self __asm__("r13");
 #define THREAD_SETMEM_NC(descr, member, value) __thread_self->member = (value)
 
 
+/* Memory barrier */
+#define MEMORY_BARRIER() __asm__ __volatile__("mf" : : : "memory")
+
+
 #define HAS_COMPARE_AND_SWAP_WITH_RELEASE_SEMANTICS
 
 PT_EI int