Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/powerpc fix pmap_changebit() to look for th...



details:   https://anonhg.NetBSD.org/src/rev/c3f2db8b6132
branches:  trunk
changeset: 516019:c3f2db8b6132
user:      chs <chs%NetBSD.org@localhost>
date:      Sat Oct 13 18:28:10 2001 +0000

description:
fix pmap_changebit() to look for the bit in the page attrs
in addition to any PTEs.  fixes PR 14220.

diffstat:

 sys/arch/powerpc/powerpc/pmap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r d537dae51585 -r c3f2db8b6132 sys/arch/powerpc/powerpc/pmap.c
--- a/sys/arch/powerpc/powerpc/pmap.c   Sat Oct 13 17:20:48 2001 +0000
+++ b/sys/arch/powerpc/powerpc/pmap.c   Sat Oct 13 18:28:10 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.46 2001/07/22 13:08:09 wiz Exp $    */
+/*     $NetBSD: pmap.c,v 1.47 2001/10/13 18:28:10 chs Exp $    */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -1215,14 +1215,14 @@
        if (attr == NULL)
                return FALSE;
 
+       rv = *attr & (mask >> ATTRSHFT);
        *attr &= ~mask >> ATTRSHFT;
        *attr |= val >> ATTRSHFT;
 
        pv = pa_to_pv(pa);
        if (pv->pv_idx < 0)
-               return FALSE;
+               return rv != 0;
 
-       rv = FALSE;
        s = splvm();
        for (; pv; pv = pv->pv_next) {
                for (ptp = ptable + pv->pv_idx * 8, i = 8; --i >= 0; ptp++)



Home | Main Index | Thread Index | Old Index