diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2003-12-14 19:07:00 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2003-12-14 19:07:00 +0000 |
commit | 012896eda04dc0aec7f67ccbe55e339562dedb21 (patch) | |
tree | 200f6c21e5bfb8b2f9d07ff27cdc78df0d192a5e /sys | |
parent | 419550d537b5712656f5eafedc60ee0a414ef5b8 (diff) |
In pmap_testbit, always update the attribute flags for the pv list hander.
Fixes a regression introduced in the conversion from physseg to VM_PAGE_MD.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/m68k/m68k/pmap_motorola.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/m68k/m68k/pmap_motorola.c b/sys/arch/m68k/m68k/pmap_motorola.c index 11a3fef5db7..1f345cb1735 100644 --- a/sys/arch/m68k/m68k/pmap_motorola.c +++ b/sys/arch/m68k/m68k/pmap_motorola.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap_motorola.c,v 1.30 2003/11/02 13:47:28 miod Exp $ */ +/* $OpenBSD: pmap_motorola.c,v 1.31 2003/12/14 19:06:59 miod Exp $ */ /* * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -2289,7 +2289,7 @@ pmap_testbit(pg, bit) struct vm_page *pg; int bit; { - struct pv_entry *pv; + struct pv_entry *pv, *pvl; pt_entry_t *pte; int s; @@ -2316,8 +2316,8 @@ pmap_testbit(pg, bit) * found. Cache a hit to speed future lookups. */ if (pv->pv_pmap != NULL) { - for (; pv; pv = pv->pv_next) { - pte = pmap_pte(pv->pv_pmap, pv->pv_va); + for (pvl = pv; pvl != NULL; pvl = pvl->pv_next) { + pte = pmap_pte(pvl->pv_pmap, pvl->pv_va); if (*pte & bit) { pv->pv_flags |= bit; splx(s); |