summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-06-30 15:12:48 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-06-30 15:12:48 +0000
commit55eed478865cc3b0aa67099128bd0ff3793b98b4 (patch)
treeedcbc6d0f27fd5d8a9c647a5b2cebaad9ea8c8e2
parent81d9ecb9acbe5f9dfec41f1c0c399ad5ac68294d (diff)
On OSS systems (IIfx), compute addresses relative to VIA2 rather than VIA1,
it's simpler.
-rw-r--r--sys/arch/mac68k/mac68k/via.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mac68k/mac68k/via.c b/sys/arch/mac68k/mac68k/via.c
index c8bb706c493..caf511458ae 100644
--- a/sys/arch/mac68k/mac68k/via.c
+++ b/sys/arch/mac68k/mac68k/via.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: via.c,v 1.27 2006/01/16 21:48:22 miod Exp $ */
+/* $OpenBSD: via.c,v 1.28 2006/06/30 15:12:47 miod Exp $ */
/* $NetBSD: via.c,v 1.62 1997/09/10 04:38:48 scottr Exp $ */
/*-
@@ -152,7 +152,7 @@ via_init()
"via2");
} else if (current_mac_model->class == MACH_CLASSIIfx) { /* OSS */
volatile u_char *ossintr;
- ossintr = (volatile u_char *)IOBase + 0x1a006;
+ ossintr = (volatile u_char *)Via2Base + 6;
*ossintr = 0;
intr_establish(oss_intr, NULL, mac68k_machine.via2_ipl,
"via2");