//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
    <ajax@freedesktop.org>.
This commit is contained in:
Roland Mainz 2005-01-13 00:30:55 +00:00
parent 731fc608cb
commit 39f800e592

View file

@ -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 <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)