summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2009-05-14 16:00:41 -0400
committerJames Cloos <cloos@jhcloos.com>2009-05-14 16:03:04 -0400
commitc1bbac2708bbccbec01cecba39cdf2b8160c1dc3 (patch)
tree42295067c88b61219070195ea7d050c54edce31a
parent4cc33190ef1a4207c0f8fc74201cdf2568a239c2 (diff)
Fix mem_barrier() on Alpha
Some clean up (da086901c6579e41b28b1418fa12ebb82744fc87) went a bit too far and removed the needed mem_barrier macro on Alpha. This re-adds it.
-rw-r--r--hw/xfree86/common/compiler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h
index 2601693ca..40b463efb 100644
--- a/hw/xfree86/common/compiler.h
+++ b/hw/xfree86/common/compiler.h
@@ -357,7 +357,8 @@ static __inline__ void stw_u(unsigned long r5, unsigned short * r11)
# endif
}
-# define write_mem_barrier() __asm__ __volatile__("wmb" : : : "memory")
+# define mem_barrier() __asm__ __volatile__("mb" : : : "memory")
+# define write_mem_barrier() __asm__ __volatile__("wmb" : : : "memory")
# elif defined(linux) && defined(__ia64__)