From 0428fc671cd07246f6966d63130f79fb8842acbd Mon Sep 17 00:00:00 2001 From: Martin Reindl Date: Thu, 10 Nov 2005 22:57:38 +0000 Subject: be MI, use atop() --- sys/dev/pci/vga_pci.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys') 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; -- cgit v1.2.3