summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/vga_pci.c
diff options
context:
space:
mode:
authormartin <martin@openbsd.org>2005-11-10 22:57:37 +0000
committermartin <martin@openbsd.org>2005-11-10 22:57:37 +0000
commit7ec06f10593c367e1a498460e89927824a77b55f (patch)
tree10c45d55cc3b1170eb376818db734fc72a0091a6 /sys/dev/pci/vga_pci.c
parentremove half the includes since they seem to be unnecessary. (diff)
downloadwireguard-openbsd-7ec06f10593c367e1a498460e89927824a77b55f.tar.xz
wireguard-openbsd-7ec06f10593c367e1a498460e89927824a77b55f.zip
be MI, use atop()
Diffstat (limited to 'sys/dev/pci/vga_pci.c')
-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;