From a303670107f205c6ca76919ca6cd6af6013073f1 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 13 Jan 2005 01:22:53 +0000 Subject: [PATCH] Bug #2114: PPC64 Linux build fix: use system definition of eieio(). Originally Gentoo bug #66223. (Tim Yamin, Donnie Berkholz) --- 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)