summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2005-08-11 23:38:02 +0000
committeralc <alc@FreeBSD.org>2005-08-11 23:38:02 +0000
commit9330b6a79d765eb42dda031a1d96dce8436496b6 (patch)
treea1a330fc14d2f17923c6c80e0f6b32d7265646de
parent0f8d1315f5f50f1e499c78b4f31452ea7668e04c (diff)
downloadFreeBSD-src-9330b6a79d765eb42dda031a1d96dce8436496b6.zip
FreeBSD-src-9330b6a79d765eb42dda031a1d96dce8436496b6.tar.gz
Eliminate unneeded diagnostic code.
Eliminate an unused #include. (Kernel stack allocation and deallocation long ago migrated to the machine-independent code.)
-rw-r--r--sys/amd64/amd64/pmap.c7
-rw-r--r--sys/i386/i386/pmap.c7
2 files changed, 0 insertions, 14 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 372d20f..e45f256 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -104,7 +104,6 @@ __FBSDID("$FreeBSD$");
*/
#include "opt_msgbuf.h"
-#include "opt_kstack_pages.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -2557,12 +2556,6 @@ pmap_is_modified(vm_page_t m)
*/
if (!pmap_track_modified(pv->pv_va))
continue;
-#if defined(PMAP_DIAGNOSTIC)
- if (!pv->pv_pmap) {
- printf("Null pmap (tb) at va: 0x%lx\n", pv->pv_va);
- continue;
- }
-#endif
PMAP_LOCK(pv->pv_pmap);
pte = pmap_pte(pv->pv_pmap, pv->pv_va);
rv = (*pte & PG_M) != 0;
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index 263b44d..e5ad5fa 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -104,7 +104,6 @@ __FBSDID("$FreeBSD$");
#include "opt_cpu.h"
#include "opt_pmap.h"
#include "opt_msgbuf.h"
-#include "opt_kstack_pages.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -2633,12 +2632,6 @@ pmap_is_modified(vm_page_t m)
*/
if (!pmap_track_modified(pv->pv_va))
continue;
-#if defined(PMAP_DIAGNOSTIC)
- if (!pv->pv_pmap) {
- printf("Null pmap (tb) at va: 0x%x\n", pv->pv_va);
- continue;
- }
-#endif
PMAP_LOCK(pv->pv_pmap);
pte = pmap_pte_quick(pv->pv_pmap, pv->pv_va);
rv = (*pte & PG_M) != 0;
OpenPOWER on IntegriCloud