From d7ffd4398b71af9e27a6b48a6bf361fa34326a37 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 8 Dec 2001 20:08:28 +0000 Subject: Use PMAP_MANAGED() macro everywhere instead of hand-expanding it. --- sys/arch/mvme88k/mvme88k/pmap.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/arch/mvme88k/mvme88k/pmap.c b/sys/arch/mvme88k/mvme88k/pmap.c index 0c6822e5e27..bde496c630c 100644 --- a/sys/arch/mvme88k/mvme88k/pmap.c +++ b/sys/arch/mvme88k/mvme88k/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.48 2001/11/28 15:34:16 art Exp $ */ +/* $OpenBSD: pmap.c,v 1.49 2001/12/08 20:08:27 miod Exp $ */ /* * Copyright (c) 1996 Nivas Madhur * All rights reserved. @@ -1919,15 +1919,15 @@ pmap_remove_range(pmap_t pmap, vm_offset_t s, vm_offset_t e) flush_atc_entry(users, tva, kflush); if (opte.pte.modified) { - if (vm_physseg_find(atop(pa), NULL) != -1) { + if (PMAP_MANAGED(pa)) { struct vm_page *pg; pg = PHYS_TO_VM_PAGE(opte.bits & ~PAGE_MASK); pg->flags &= ~PG_CLEAN; - } - /* keep track ourselves too */ - if (PMAP_MANAGED(pa)) + + /* keep track ourselves too */ SET_ATTRIB(pa, 1); + } } } /* end for ( va = s; ...) */ -- cgit v1.2.3