summaryrefslogtreecommitdiff
blob: cb6966e6c25d276ae7c8ad46c4d0100bb34cf373 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- xc.orig/programs/Xserver/hw/xfree86/common/compiler.h	2004-12-22 08:24:22.364106000 -0800
+++ xc/programs/Xserver/hw/xfree86/common/compiler.h	2004-12-22 08:26:39.869202576 -0800
@@ -1076,7 +1076,12 @@
 
 extern volatile unsigned char *ioBase;
 
-#    define eieio()		__asm__ __volatile__ ("eieio" ::: "memory")
+#if defined(linux) && defined(__powerpc64__)
+# include <asm/memory.h>
+#endif /* defined(linux) && defined(__powerpc64__) */
+#ifndef eieio /* We deal with arch-specific eieio() routines above... */
+# define eieio() __asm__ __volatile__ ("eieio" ::: "memory")
+#endif /* eieio */
 
 static __inline__ unsigned char
 xf86ReadMmio8(__volatile__ void *base, const unsigned long offset)