summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/dev/vmel.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2001-06-14 21:30:47 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2001-06-14 21:30:47 +0000
commit4b285773bdb76f222c9cc2e367aa3c0a5487339c (patch)
tree0d699ba3d097126dea62a8b41b8aba2723ae0bae /sys/arch/mvme88k/dev/vmel.c
parentfc6172932d8fdeecc671e7795566fd34da21b853 (diff)
Big cleanup of VM issues:
o get rid of m88k_foo macros when there is an mi foo macro o remove the ability, for the pmap module, to handle a native mmu page size different from the vm module page size. This allows some optimizations in pmap.c o remove dead stuff from <machine/vmparam.h>
Diffstat (limited to 'sys/arch/mvme88k/dev/vmel.c')
-rw-r--r--sys/arch/mvme88k/dev/vmel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/mvme88k/dev/vmel.c b/sys/arch/mvme88k/dev/vmel.c
index ece0f933461..cc70108b3d4 100644
--- a/sys/arch/mvme88k/dev/vmel.c
+++ b/sys/arch/mvme88k/dev/vmel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmel.c,v 1.3 2001/03/09 05:44:39 smurph Exp $ */
+/* $OpenBSD: vmel.c,v 1.4 2001/06/14 21:30:35 miod Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -37,6 +37,7 @@
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/device.h>
+
#include <machine/cpu.h>
#include <machine/autoconf.h>
#include <mvme88k/dev/vme.h>
@@ -165,5 +166,5 @@ vmelmmap(dev, off, prot)
printf("vmel %x pa %x\n", off, pa);
if (pa == NULL)
return (-1);
- return (m88k_btop(pa));
+ return (atop(pa));
}