From 816a5637cd761c011f3190eea49bfddc55f5a214 Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 15 Jun 2001 06:27:07 +0000 Subject: [PATCH] When releasing the SR VSID, mask off the bits not related to the index in the pmap vsid bitmap. --- sys/arch/powerpc/mpc6xx/pmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/arch/powerpc/mpc6xx/pmap.c b/sys/arch/powerpc/mpc6xx/pmap.c index b79d0be01229..dae867e1a600 100644 --- a/sys/arch/powerpc/mpc6xx/pmap.c +++ b/sys/arch/powerpc/mpc6xx/pmap.c @@ -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 @@ pmap_release(pmap_t pm) 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);