pmap_remove_pages:

Add KASSERT to detect out of range access to the pv_table and
	report the errant pte before it's overwritten.
This commit is contained in:
alc 1999-08-10 04:10:57 +00:00
parent 2cfab0c1d9
commit 6118d3300f
2 changed files with 8 additions and 2 deletions

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.243 1999/07/31 04:10:31 alc Exp $
* $Id: pmap.c,v 1.244 1999/07/31 23:02:57 alc Exp $
*/
/*
@ -2967,6 +2967,9 @@ pmap_remove_pages(pmap, sva, eva)
ppv = pa_to_pvh(tpte);
KASSERT(ppv < &pv_table[pv_npg],
("pmap_remove_pages: bad tpte %x", tpte));
pv->pv_pmap->pm_stats.resident_count--;
/*

View File

@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
* $Id: pmap.c,v 1.243 1999/07/31 04:10:31 alc Exp $
* $Id: pmap.c,v 1.244 1999/07/31 23:02:57 alc Exp $
*/
/*
@ -2967,6 +2967,9 @@ pmap_remove_pages(pmap, sva, eva)
ppv = pa_to_pvh(tpte);
KASSERT(ppv < &pv_table[pv_npg],
("pmap_remove_pages: bad tpte %x", tpte));
pv->pv_pmap->pm_stats.resident_count--;
/*