summaryrefslogtreecommitdiffstats
path: root/sys/mips/include/pmap.h
diff options
context:
space:
mode:
authorjchandra <jchandra@FreeBSD.org>2010-08-29 05:39:21 +0000
committerjchandra <jchandra@FreeBSD.org>2010-08-29 05:39:21 +0000
commit2efeeccf294e7ce90b18af42e7098954b75504e8 (patch)
tree05f8d8d4961b1d28223962614ce252dd9531c26a /sys/mips/include/pmap.h
parentac834a438a850ee0cf4faee191d21404e0048009 (diff)
downloadFreeBSD-src-2efeeccf294e7ce90b18af42e7098954b75504e8.zip
FreeBSD-src-2efeeccf294e7ce90b18af42e7098954b75504e8.tar.gz
Apply MIPS pmap clean up patch from alc@ (with minor change to KASSERT):
PMAP_DIAGNOSTIC was eliminated from amd64/i386, and, in fact, the non-MIPS parts of the kernel, several years ago. Any of the interesting checks were turned into KASSERT()s. Basically, the motivation was that lots of people run with INVARIANTS but no one runs with DIAGNOSTIC. panic strings needn't and shouldn't have a terminating newline. Finally, there is one functional change. The sched_pin() in pmap_remove_pages() is an artifact of the way we temporarily map page table pages on i386. (The mappings are processor private. We don't do a system-wide shootdown.) It isn't needed by MIPS. Tested by: jchandra Submitted by: alc
Diffstat (limited to 'sys/mips/include/pmap.h')
-rw-r--r--sys/mips/include/pmap.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/mips/include/pmap.h b/sys/mips/include/pmap.h
index 5432519..e6aada9 100644
--- a/sys/mips/include/pmap.h
+++ b/sys/mips/include/pmap.h
@@ -126,11 +126,6 @@ typedef struct pv_entry {
vm_page_t pv_ptem; /* VM page for pte */
} *pv_entry_t;
-
-#if defined(DIAGNOSTIC)
-#define PMAP_DIAGNOSTIC
-#endif
-
/*
* physmem_desc[] is a superset of phys_avail[] and describes all the
* memory present in the system.
OpenPOWER on IntegriCloud