Print slightly more useful information on the 'bad pte' panic.

No objections from:	alc
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2013-02-14 19:22:15 +00:00
parent 252b1f6e22
commit bf94adb3e1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246802

View File

@ -4446,8 +4446,10 @@ pmap_remove_pages(pmap_t pmap)
pte = &pte[pmap_pte_index(pv->pv_va)];
tpte = *pte & ~PG_PTE_PAT;
}
if ((tpte & PG_V) == 0)
panic("bad pte");
if ((tpte & PG_V) == 0) {
panic("bad pte va %lx pte %lx",
pv->pv_va, tpte);
}
/*
* We cannot remove wired pages from a process' mapping at this time