summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Reindl <martin@cvs.openbsd.org>2005-11-10 22:57:38 +0000
committerMartin Reindl <martin@cvs.openbsd.org>2005-11-10 22:57:38 +0000
commit0428fc671cd07246f6966d63130f79fb8842acbd (patch)
tree07ee17fb3b49bc8cc6955980147f807528ac62f2
parent8da8265ce2099af3d4f8dea3725b93607fee0d72 (diff)
be MI, use atop()
-rw-r--r--sys/dev/pci/vga_pci.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/pci/vga_pci.c b/sys/dev/pci/vga_pci.c
index 44023aee5f6..0229bf099ff 100644
--- a/sys/dev/pci/vga_pci.c
+++ b/sys/dev/pci/vga_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vga_pci.c,v 1.18 2005/06/11 00:48:06 miod Exp $ */
+/* $OpenBSD: vga_pci.c,v 1.19 2005/11/10 22:57:37 martin Exp $ */
/* $NetBSD: vga_pci.c,v 1.3 1998/06/08 06:55:58 thorpej Exp $ */
/*-
@@ -280,9 +280,7 @@ vga_pci_mmap(void *v, off_t off, int prot)
if (off > AGP_GET_APERTURE(sc))
return (-1);
-#ifdef __i386__
- return i386_btop(sc->sc_apaddr + off);
-#endif
+ return atop(sc->sc_apaddr + off);
}
#endif
return -1;