summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-11-23 11:30:15 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-11-23 11:30:15 +0000
commitfcf813dc561c01ef35828627afde907ab2be6db6 (patch)
tree6260a8289487ebc356bfe3642a807f187b76b0f3 /sys/arch
parentdcb769a84f5ac99a41089b979c808541d2fbc842 (diff)
assume vtophys(vaddr_t) just what all the other archs expect; no functional change
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/i386/cpu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/cpu.c b/sys/arch/i386/i386/cpu.c
index 304f54eea91..d3fef0caff6 100644
--- a/sys/arch/i386/i386/cpu.c
+++ b/sys/arch/i386/i386/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.15 2005/07/18 02:43:25 fgsch Exp $ */
+/* $OpenBSD: cpu.c,v 1.16 2005/11/23 11:30:14 mickey Exp $ */
/* $NetBSD: cpu.c,v 1.1.2.7 2000/06/26 02:04:05 sommerfeld Exp $ */
/*-
@@ -253,7 +253,7 @@ cpu_attach(parent, self, aux)
pcb->pcb_tss.tss_esp = kstack + USPACE - 16 -
sizeof (struct trapframe);
pcb->pcb_pmap = pmap_kernel();
- pcb->pcb_cr3 = vtophys(pcb->pcb_pmap->pm_pdir);
+ pcb->pcb_cr3 = vtophys((vaddr_t)pcb->pcb_pmap->pm_pdir);
/* pcb->pcb_cr3 = pcb->pcb_pmap->pm_pdir - KERNBASE; XXX ??? */
#endif
@@ -414,7 +414,7 @@ cpu_boot_secondary (ci)
printf("%s: starting", ci->ci_dev.dv_xname);
/* XXX move elsewhere, not per CPU. */
- mp_pdirpa = vtophys(kpm->pm_pdir);
+ mp_pdirpa = vtophys((vaddr_t)kpm->pm_pdir);
pcb = ci->ci_idle_pcb;