svn commit: r241520 - head/sys/mips/mips
Alan Cox
alc at FreeBSD.org
Sun Oct 14 03:40:09 UTC 2012
Author: alc
Date: Sun Oct 14 03:40:08 2012
New Revision: 241520
URL: http://svn.freebsd.org/changeset/base/241520
Log:
Correct an error in pmap_pv_reclaim(). It can legitimately encounter
wired mappings. If it does, it should just skip them.
Modified:
head/sys/mips/mips/pmap.c
Modified: head/sys/mips/mips/pmap.c
==============================================================================
--- head/sys/mips/mips/pmap.c Sat Oct 13 23:54:26 2012 (r241519)
+++ head/sys/mips/mips/pmap.c Sun Oct 14 03:40:08 2012 (r241520)
@@ -1434,8 +1434,8 @@ pmap_pv_reclaim(pmap_t locked_pmap)
("pmap_pv_reclaim: pde"));
pte = pmap_pde_to_pte(pde, va);
oldpte = *pte;
- KASSERT(!pte_test(&oldpte, PTE_W),
- ("wired pte for unwired page"));
+ if (pte_test(&oldpte, PTE_W))
+ continue;
if (is_kernel_pmap(pmap))
*pte = PTE_G;
else
More information about the svn-src-head
mailing list