summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMartin Reindl <martin@cvs.openbsd.org>2005-11-13 17:24:32 +0000
committerMartin Reindl <martin@cvs.openbsd.org>2005-11-13 17:24:32 +0000
commit56fd7dfee4de7122306fde7e9dc0075dee5e3dae (patch)
treec21bd1a7b83775874103436f06dc736dfc1e6870 /sys/arch/i386
parent94b07f62b8ab98845695c80a6e0b1e4bfb80244a (diff)
need cast to vaddr_t
found the hard way by deraadt@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/machdep.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index d5c035e77cf..f7c4f8196e9 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.330 2005/11/13 14:23:26 martin Exp $ */
+/* $OpenBSD: machdep.c,v 1.331 2005/11/13 17:24:31 martin Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -2847,8 +2847,9 @@ init386(paddr_t first_avail)
#if defined(MULTIPROCESSOR)
/* install the page after boot args as PT page for first 4M */
pmap_enter(pmap_kernel(), (u_long)vtopte(0),
- round_page(bootargv + bootargc), VM_PROT_READ|VM_PROT_WRITE,
- VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
+ round_page((vaddr_t)(bootargv + bootargc)),
+ VM_PROT_READ|VM_PROT_WRITE,
+ VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
memset(vtopte(0), 0, NBPG); /* make sure it is clean before using */
#endif