Author: kib
Date: Thu Feb 21 05:55:52 2013
New Revision: 247079
URL: http://svnweb.freebsd.org/changeset/base/247079

Log:
  MFC r246802:
  Print slightly more useful information on the 'bad pte' panic.

Modified:
  stable/9/sys/amd64/amd64/pmap.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/amd64/amd64/pmap.c
==============================================================================
--- stable/9/sys/amd64/amd64/pmap.c     Thu Feb 21 05:53:42 2013        
(r247078)
+++ stable/9/sys/amd64/amd64/pmap.c     Thu Feb 21 05:55:52 2013        
(r247079)
@@ -4405,8 +4405,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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to