From 147aa6816f5cc42f9918864038af314bf17d5a28 Mon Sep 17 00:00:00 2001 From: matthias Date: Wed, 9 Jul 1997 19:26:34 +0000 Subject: [PATCH] Remove __VM_PMAP_HACK. --- sys/arch/pc532/pc532/pmap.c | 4 ++-- sys/arch/pc532/pc532/vm_machdep.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arch/pc532/pc532/pmap.c b/sys/arch/pc532/pc532/pmap.c index bfd61a170d53..f124aa1333ed 100644 --- a/sys/arch/pc532/pc532/pmap.c +++ b/sys/arch/pc532/pc532/pmap.c @@ -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; } diff --git a/sys/arch/pc532/pc532/vm_machdep.c b/sys/arch/pc532/pc532/vm_machdep.c index 1d179650e1ec..54a8158c3e41 100644 --- a/sys/arch/pc532/pc532/vm_machdep.c +++ b/sys/arch/pc532/pc532/vm_machdep.c @@ -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