summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/gio
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-07-02 17:44:36 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-07-02 17:44:36 +0000
commitcb9f61dc41a4aa984a6c90a52941869d9d0413c8 (patch)
tree737f67dee4a960666bfa5ef8391fe241b0f4e60f /sys/arch/sgi/gio
parentcd7f6e93caacde55ec8dcf508173e254ed17a7a0 (diff)
On IP28, ignore (as in, do not report) GIO bus errors where the address isn't
actually part of the GIO address range; these obviously come from speculative R10000 execution and are completely harmless (except for the need to acknowledge them, which we have to do anyway).
Diffstat (limited to 'sys/arch/sgi/gio')
-rw-r--r--sys/arch/sgi/gio/gioreg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sgi/gio/gioreg.h b/sys/arch/sgi/gio/gioreg.h
index 7822ce4f0b6..9abc4ff4283 100644
--- a/sys/arch/sgi/gio/gioreg.h
+++ b/sys/arch/sgi/gio/gioreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: gioreg.h,v 1.3 2012/05/10 21:30:39 miod Exp $ */
+/* $OpenBSD: gioreg.h,v 1.4 2014/07/02 17:44:35 miod Exp $ */
/* $NetBSD: gioreg.h,v 1.4 2006/08/31 00:01:10 rumble Exp $ */
/*
@@ -71,3 +71,5 @@
#define GIO_ADDR_EXP0 0x1f400000 /* 2MB */
#define GIO_ADDR_EXP1 0x1f600000 /* 4MB */
#define GIO_ADDR_END 0x1fa00000
+
+#define IS_GIO_ADDRESS(pa) ((pa) >= GIO_ADDR_GFX && (pa) < GIO_ADDR_END)