summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorKurt Miller <kurt@cvs.openbsd.org>2009-02-16 20:26:59 +0000
committerKurt Miller <kurt@cvs.openbsd.org>2009-02-16 20:26:59 +0000
commit7f3e5aedcc66cb3408d33cbe76a8bfa5d4c4454f (patch)
tree83a61e1a48b2028d7aec1fb378c5a0063d6ad86f /sys/arch
parent20f9637cba742f93c38470740f08f6dbb7f19917 (diff)
remove incorrect cast of pcb_cr3. okay kettenis@ weingart@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/amd64/pmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/pmap.c b/sys/arch/amd64/amd64/pmap.c
index 91797dc3713..6acd8a1fc3c 100644
--- a/sys/arch/amd64/amd64/pmap.c
+++ b/sys/arch/amd64/amd64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.36 2009/02/05 01:15:20 oga Exp $ */
+/* $OpenBSD: pmap.c,v 1.37 2009/02/16 20:26:58 kurt Exp $ */
/* $NetBSD: pmap.c,v 1.3 2003/05/08 18:13:13 thorpej Exp $ */
/*
@@ -574,7 +574,7 @@ pmap_bootstrap(paddr_t first_avail, paddr_t max_pa)
}
memset(&kpm->pm_list, 0, sizeof(kpm->pm_list)); /* pm_list not used */
kpm->pm_pdir = (pd_entry_t *)(proc0.p_addr->u_pcb.pcb_cr3 + KERNBASE);
- kpm->pm_pdirpa = (u_int32_t) proc0.p_addr->u_pcb.pcb_cr3;
+ kpm->pm_pdirpa = proc0.p_addr->u_pcb.pcb_cr3;
kpm->pm_stats.wired_count = kpm->pm_stats.resident_count =
atop(kva_start - VM_MIN_KERNEL_ADDRESS);