Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2013 19:22:15 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r246802 - head/sys/amd64/amd64
Message-ID:  <201302141922.r1EJMFrG030438@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Feb 14 19:22:15 2013
New Revision: 246802
URL: http://svnweb.freebsd.org/changeset/base/246802

Log:
  Print slightly more useful information on the 'bad pte' panic.
  
  No objections from:	alc
  MFC after:	1 week

Modified:
  head/sys/amd64/amd64/pmap.c

Modified: head/sys/amd64/amd64/pmap.c
==============================================================================
--- head/sys/amd64/amd64/pmap.c	Thu Feb 14 19:21:20 2013	(r246801)
+++ head/sys/amd64/amd64/pmap.c	Thu Feb 14 19:22:15 2013	(r246802)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302141922.r1EJMFrG030438>