summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/dev/nvram.c
diff options
context:
space:
mode:
authorMartin Reindl <martin@cvs.openbsd.org>2005-10-27 16:04:09 +0000
committerMartin Reindl <martin@cvs.openbsd.org>2005-10-27 16:04:09 +0000
commit88558a4e5e5064b586ce4aa901e479ab5e0e75c6 (patch)
tree5be6581779295e43cd2b628d5e60f7effe7eb86d /sys/arch/mvme68k/dev/nvram.c
parentd75aeaad3e7a1ecd4432648a97c2809fa0967b8c (diff)
stupid me, of course these MD macros need to be converted to MI macros
as well
Diffstat (limited to 'sys/arch/mvme68k/dev/nvram.c')
-rw-r--r--sys/arch/mvme68k/dev/nvram.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/mvme68k/dev/nvram.c b/sys/arch/mvme68k/dev/nvram.c
index de60a8e32de..fa8db67ccf5 100644
--- a/sys/arch/mvme68k/dev/nvram.c
+++ b/sys/arch/mvme68k/dev/nvram.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nvram.c,v 1.14 2004/07/02 18:00:50 miod Exp $ */
+/* $OpenBSD: nvram.c,v 1.15 2005/10/27 16:04:08 martin Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -42,6 +42,8 @@
#include <machine/mioctl.h>
#include <machine/psl.h>
+#include <uvm/uvm_extern.h>
+
#include <mvme68k/dev/memdevs.h>
#include <mvme68k/dev/nvramreg.h>
@@ -417,5 +419,5 @@ nvrammmap(dev, off, prot)
/* allow access only in RAM */
if (off < 0 || off > sc->sc_len)
return (-1);
- return (m68k_btop(sc->sc_paddr + off));
+ return (atop(sc->sc_paddr + off));
}