summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-07-12 21:12:04 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2005-07-12 21:12:04 +0000
commit4b64e8cbca9afc088c844b7c601d92587492fad2 (patch)
tree695d7b0da3717d382cc3a64b8815d2060ec0e0f4 /sys/arch
parent40184ca21862cd0f7212a6f7ad96f5530e28594e (diff)
call pmap_apte_flush() with the current pmap, not the one to be mapped.
ok art@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/i386/i386/pmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c
index 7bbfe9db7d4..f8f4ca15cca 100644
--- a/sys/arch/i386/i386/pmap.c
+++ b/sys/arch/i386/i386/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.81 2005/05/24 21:11:46 tedu Exp $ */
+/* $OpenBSD: pmap.c,v 1.82 2005/07/12 21:12:03 hshoexer Exp $ */
/* $NetBSD: pmap.c,v 1.91 2000/06/02 17:46:37 thorpej Exp $ */
/*
@@ -650,7 +650,7 @@ pmap_map_ptes(pmap)
if (!pmap_valid_entry(opde) || (opde & PG_FRAME) != pmap->pm_pdirpa) {
*APDP_PDE = (pd_entry_t) (pmap->pm_pdirpa | PG_RW | PG_V);
if (pmap_valid_entry(opde))
- pmap_apte_flush(pmap);
+ pmap_apte_flush(curpcb->pcb_pmap);
}
return(APTE_BASE);
}