summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-16 10:24:20 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-16 10:24:20 +0000
commitdba3c780a4f3f906235c0a1ff624adbaaeeb62dd (patch)
tree2552325579ed190fbd858394a0a78e70398b571c /sys/arch/i386
parent56b0c359ab469cd43ff0f9184621a6fe16fca894 (diff)
print better ptdi panic diagnostics
Diffstat (limited to 'sys/arch/i386')
-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);