summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-11-25 14:07:18 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-11-25 14:07:18 +0000
commit6fd1543ce51a7e96037a6dc1e8f444869c7d22fa (patch)
tree25485cc09dd6d68c2ade7ff823b4a6cf97f9026b
parent9ad5e4f642bdeda83edc17d43f882d50e96936c3 (diff)
explicitly cast caddr_t to vaddr_t
-rw-r--r--sys/arch/i386/i386/vm_machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/vm_machdep.c b/sys/arch/i386/i386/vm_machdep.c
index 0424cddedcf..ebba0686b8f 100644
--- a/sys/arch/i386/i386/vm_machdep.c
+++ b/sys/arch/i386/i386/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.41 2005/08/01 17:04:47 deraadt Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.42 2005/11/25 14:07:17 mickey Exp $ */
/* $NetBSD: vm_machdep.c,v 1.61 1996/05/03 19:42:35 christos Exp $ */
/*-
@@ -252,8 +252,8 @@ pagemove(from, to, size)
if ((size & PAGE_MASK) != 0)
panic("pagemove");
#endif
- fpte = kvtopte(from);
- tpte = kvtopte(to);
+ fpte = kvtopte((vaddr_t)from);
+ tpte = kvtopte((vaddr_t)to);
while (size > 0) {
ofpte = *fpte;
otpte = *tpte;