Remove __VM_PMAP_HACK.

This commit is contained in:
matthias 1997-07-09 19:26:34 +00:00
parent 1c21c4994d
commit 147aa6816f
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.19 1997/04/01 16:32:58 matthias Exp $ */
/* $NetBSD: pmap.c,v 1.20 1997/07/09 19:26:34 matthias Exp $ */
/*
* Copyright (c) 1993, 1994, 1995 Charles M. Hannum. All rights reserved.
@ -742,7 +742,7 @@ pmap_activate(pmap, pcb)
if (pmap /*&& pmap->pm_pdchanged */) {
pcb->pcb_ptb =
pmap_extract(pmap_kernel(), (vm_offset_t)pmap->pm_pdir);
if (pmap == &curproc->p_vmspace->vm_pmap)
if (pmap == curproc->p_vmspace->vm_map.pmap)
load_ptb(pcb->pcb_ptb);
pmap->pm_pdchanged = FALSE;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.19 1997/03/20 12:01:03 matthias Exp $ */
/* $NetBSD: vm_machdep.c,v 1.20 1997/07/09 19:26:37 matthias Exp $ */
/*-
* Copyright (c) 1996 Matthias Pfaller.
@ -85,7 +85,7 @@ cpu_fork(p1, p2)
/* If p1 is holding the FPU, update the FPU context of p2. */
if (fpu_proc == p1)
save_fpu_context(pcb);
pmap_activate(&p2->p_vmspace->vm_pmap, pcb);
pmap_activate(p2->p_vmspace->vm_map.pmap, pcb);
/*
* Copy the syscframe, and arrange for the child to return directly