summaryrefslogtreecommitdiff
path: root/sys/dev/ic/vga.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/vga.c')
-rw-r--r--sys/dev/ic/vga.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ic/vga.c b/sys/dev/ic/vga.c
index b9bc16a5353..19c47e50c65 100644
--- a/sys/dev/ic/vga.c
+++ b/sys/dev/ic/vga.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vga.c,v 1.9 1997/11/06 02:53:41 niklas Exp $ */
+/* $OpenBSD: vga.c,v 1.10 1997/11/06 03:38:44 mickey Exp $ */
/* $NetBSD: vga.c,v 1.3 1996/12/02 22:24:54 cgd Exp $ */
/*
@@ -248,7 +248,11 @@ vgammap(v, offset, prot)
return (-1);
port = (u_int32_t *)(h << 5);
+#ifdef alpha
return alpha_btop(port); /* XXX */
+#elif defined(i386)
+ return i386_btop(port);
+#endif
}
/*