diff options
author | kib <kib@FreeBSD.org> | 2013-02-14 19:22:15 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-02-14 19:22:15 +0000 |
commit | 8d503a3c600526f439702dd1f58becc795b17f44 (patch) | |
tree | cb35865fd467edad9db5fe75ba543b367a987926 /sys | |
parent | d135eb2b0cae720b280079f6e45284fe9e478582 (diff) | |
download | FreeBSD-src-8d503a3c600526f439702dd1f58becc795b17f44.zip FreeBSD-src-8d503a3c600526f439702dd1f58becc795b17f44.tar.gz |
Print slightly more useful information on the 'bad pte' panic.
No objections from: alc
MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/pmap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 4bdf382..f30a071 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -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 |