summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-10-15 00:45:35 +0000
committerpeter <peter@FreeBSD.org>2003-10-15 00:45:35 +0000
commit1e073a3aa6dc2f45cd340e05614e5d44fa33c4fe (patch)
tree072807e0599e45465a2576d101ad6dbd2bbb0cc6
parent9d7728f915e3c12e412318754bca99386b04c5c3 (diff)
downloadFreeBSD-src-1e073a3aa6dc2f45cd340e05614e5d44fa33c4fe.zip
FreeBSD-src-1e073a3aa6dc2f45cd340e05614e5d44fa33c4fe.tar.gz
Get some more data if we hit the pmap_enter() thing.
-rw-r--r--sys/i386/i386/pmap.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index 835b895..f39832d 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -1902,8 +1902,15 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot,
origpte = *pte;
opa = origpte & PG_FRAME;
- if (origpte & PG_PS)
+ if (origpte & PG_PS) {
+ /*
+ * Yes, I know this will truncate upper address bits for PAE,
+ * but I'm actually more interested in the lower bits
+ */
+ printf("pmap_enter: va %p, pte %p, origpte %p\n",
+ (void *)va, (void *)pte, (void *)(uintptr_t)origpte);
panic("pmap_enter: attempted pmap_enter on 4MB page");
+ }
/*
* Mapping has not changed, must be protection or wiring change.
OpenPOWER on IntegriCloud