Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/mpc6xx When releasing the SR VSID, mask off...



details:   https://anonhg.NetBSD.org/src/rev/1824319bb5f1
branches:  trunk
changeset: 511236:1824319bb5f1
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Jun 15 06:27:07 2001 +0000

description:
When releasing the SR VSID, mask off the bits not related to the index
in the pmap vsid bitmap.

diffstat:

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

diffs (17 lines):

diff -r ea2c91916efe -r 1824319bb5f1 sys/arch/powerpc/mpc6xx/pmap.c
--- a/sys/arch/powerpc/mpc6xx/pmap.c    Fri Jun 15 05:43:40 2001 +0000
+++ b/sys/arch/powerpc/mpc6xx/pmap.c    Fri Jun 15 06:27:07 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.3 2001/06/10 07:56:36 matt Exp $    */
+/*     $NetBSD: pmap.c,v 1.4 2001/06/15 06:27:07 matt Exp $    */
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -785,6 +785,7 @@
        if (!pm->pm_sr[0])
                panic("pmap_release");
        i = VSID_TO_HASH(pm->pm_sr[0]);
+       i &= (NPMAPS-1);
        j = i % (sizeof usedsr[0] * 8);
        i /= sizeof usedsr[0] * 8;
        usedsr[i] &= ~(1 << j);



Home | Main Index | Thread Index | Old Index