summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/i386/i386/pmap.c11
-rw-r--r--sys/arch/i386/i386/pmap.old.c11
2 files changed, 16 insertions, 6 deletions
diff --git a/sys/arch/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c
index 315eb9da9f1..ceffc55e365 100644
--- a/sys/arch/i386/i386/pmap.c
+++ b/sys/arch/i386/i386/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.11 1996/06/02 10:44:21 mickey Exp $ */
+/* $OpenBSD: pmap.c,v 1.12 1996/06/16 10:24:19 deraadt Exp $ */
/* $NetBSD: pmap.c,v 1.36 1996/05/03 19:42:22 christos Exp $ */
/*
@@ -1081,9 +1081,14 @@ pmap_enter(pmap, va, pa, prot, wired)
* Page Directory table entry not valid, we need a new PT page
*/
pte = pmap_pte(pmap, va);
- if (!pte)
+ if (!pte) {
+ printf("ptdi panic!\n");
+ printf("pte %p pmap %p va %p\n", pte, pmap, va);
+ printf("pmap_pde(pmap, va) %p\n", pmap_pde(pmap, va));
+ printf("pmap_pde_v(pmap_pde(pmap, va) %p\n",
+ pmap_pde_v(pmap_pde(pmap, va)));
panic("ptdi %x", pmap->pm_pdir[PTDPTDI]);
-
+ }
#ifdef DEBUG
if (pmapdebug & PDB_ENTER)
printf("enter: pte %x, *pte %x ", pte, *pte);
diff --git a/sys/arch/i386/i386/pmap.old.c b/sys/arch/i386/i386/pmap.old.c
index bbe4fa12c8e..bec37667221 100644
--- a/sys/arch/i386/i386/pmap.old.c
+++ b/sys/arch/i386/i386/pmap.old.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.old.c,v 1.11 1996/06/02 10:44:21 mickey Exp $ */
+/* $OpenBSD: pmap.old.c,v 1.12 1996/06/16 10:24:19 deraadt Exp $ */
/* $NetBSD: pmap.c,v 1.36 1996/05/03 19:42:22 christos Exp $ */
/*
@@ -1081,9 +1081,14 @@ pmap_enter(pmap, va, pa, prot, wired)
* Page Directory table entry not valid, we need a new PT page
*/
pte = pmap_pte(pmap, va);
- if (!pte)
+ if (!pte) {
+ printf("ptdi panic!\n");
+ printf("pte %p pmap %p va %p\n", pte, pmap, va);
+ printf("pmap_pde(pmap, va) %p\n", pmap_pde(pmap, va));
+ printf("pmap_pde_v(pmap_pde(pmap, va) %p\n",
+ pmap_pde_v(pmap_pde(pmap, va)));
panic("ptdi %x", pmap->pm_pdir[PTDPTDI]);
-
+ }
#ifdef DEBUG
if (pmapdebug & PDB_ENTER)
printf("enter: pte %x, *pte %x ", pte, *pte);