From 39f800e592d759a02c52df8c8497f657ac59b29b Mon Sep 17 00:00:00 2001 From: Roland Mainz Date: Thu, 13 Jan 2005 00:30:55 +0000 Subject: [PATCH] //bugs.freedesktop.org/show_bug.cgi?id=2114) attachment #1576 (https://bugs.freedesktop.org/attachment.cgi?id=1576): Fix build bustage on PPC64 with Linux 2.6.x kernel headers. Patch by Adam Jackson . --- hw/xfree86/common/compiler.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h index 269b8bfb4..164bcb01f 100644 --- a/hw/xfree86/common/compiler.h +++ b/hw/xfree86/common/compiler.h @@ -1076,7 +1076,12 @@ xf86WriteMmio32Be(__volatile__ void *base, const unsigned long offset, extern volatile unsigned char *ioBase; -# define eieio() __asm__ __volatile__ ("eieio" ::: "memory") +#if defined(linux) && defined(__powerpc64__) +# include +#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)