Physical page status functions pmap_clear_reference()

and pmap_clear_modify() weren't testing if the page whose status was being
changed was being managed.  This caused kernel panics with X11.
This commit is contained in:
jeremy 1997-04-01 02:15:33 +00:00
parent 56748ee1ef
commit 68755b199e
2 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.18 1997/03/26 23:27:12 gwr Exp $ */
/* $NetBSD: pmap.c,v 1.19 1997/04/01 02:15:33 jeremy Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -2941,6 +2941,8 @@ void
pmap_clear_modify(pa)
vm_offset_t pa;
{
if (!is_managed(pa))
return;
pmap_clear_pv(pa, PV_FLAGS_MDFY);
}
@ -2953,6 +2955,8 @@ void
pmap_clear_reference(pa)
vm_offset_t pa;
{
if (!is_managed(pa))
return;
pmap_clear_pv(pa, PV_FLAGS_USED);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.18 1997/03/26 23:27:12 gwr Exp $ */
/* $NetBSD: pmap.c,v 1.19 1997/04/01 02:15:33 jeremy Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -2941,6 +2941,8 @@ void
pmap_clear_modify(pa)
vm_offset_t pa;
{
if (!is_managed(pa))
return;
pmap_clear_pv(pa, PV_FLAGS_MDFY);
}
@ -2953,6 +2955,8 @@ void
pmap_clear_reference(pa)
vm_offset_t pa;
{
if (!is_managed(pa))
return;
pmap_clear_pv(pa, PV_FLAGS_USED);
}