From 5210321df82ded73fddff8c373d6e0ceb1651945 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 2 Apr 2002 22:28:27 +0000 Subject: (MEMORY_BARRIER): Define. --- linuxthreads/sysdeps/ia64/pt-machine.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'linuxthreads/sysdeps') diff --git a/linuxthreads/sysdeps/ia64/pt-machine.h b/linuxthreads/sysdeps/ia64/pt-machine.h index d3585ec..4c8bd0e 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 -- cgit v1.1