From 962908abbcc9b0be37af7b02b25c76789abdb0b0 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 2 Apr 2002 22:30:50 +0000 Subject: [PATCH] (MEMORY_BARRIER): Define. --- linuxthreads/sysdeps/ia64/pt-machine.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linuxthreads/sysdeps/ia64/pt-machine.h b/linuxthreads/sysdeps/ia64/pt-machine.h index 216485ea68a..56abb9fbc5a 100644 --- a/linuxthreads/sysdeps/ia64/pt-machine.h +++ b/linuxthreads/sysdeps/ia64/pt-machine.h @@ -62,6 +62,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 -- 2.47.2