summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunQiang Su <wzssyqa@gmail.com>2013-10-12 13:22:35 +0800
committerKeith Packard <keithp@keithp.com>2014-04-21 22:02:32 -0700
commit19e5a13970ad9d440c0789395e94931429ef4fbb (patch)
tree2ec8fd64e8690f9e690e7edc1c9c616f7e1c2333
parentf466fb2432292d74123d701764c432d3aa75ef1d (diff)
Fix hw/xfree86/common/compiler.h for mips64
Mark mips64 as 64bit Use long as PORT_SIZE Signed-off-by: YunQiang Su <wzssyqa@gmail.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Keith Packard <keithp@keithp.com>
-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 3a57186be..fb95f58bf 100644
--- a/hw/xfree86/common/compiler.h
+++ b/hw/xfree86/common/compiler.h
@@ -103,6 +103,7 @@
#if !defined(__sparc__) && !defined(__sparc) && !defined(__arm32__) && !defined(__nds32__) \
&& !(defined(__alpha__) && defined(linux)) \
&& !(defined(__ia64__) && defined(linux)) \
+ && !(defined(__mips64) && defined(linux)) \
extern _X_EXPORT void outb(unsigned short, unsigned char);
extern _X_EXPORT void outw(unsigned short, unsigned short);
@@ -721,7 +722,7 @@ xf86WriteMmio32LeNB(__volatile__ void *base, const unsigned long offset,
}
#elif defined(__mips__) || (defined(__arm32__) && !defined(__linux__))
-#ifdef __arm32__
+#if defined(__arm32__) || defined(__mips64)
#define PORT_SIZE long
#else
#define PORT_SIZE short