summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-01-26 21:06:40 +0000
committerdg <dg@FreeBSD.org>1995-01-26 21:06:40 +0000
commitdd5cf89ec4aa71c9c6e54b50b32167bd1712f544 (patch)
tree741da76063e3dcc96826bf0d0cd8442200b99351
parent783f9a44fd81c6f3ee4eb78e83fdb1a68b5f67cd (diff)
downloadFreeBSD-src-dd5cf89ec4aa71c9c6e54b50b32167bd1712f544.zip
FreeBSD-src-dd5cf89ec4aa71c9c6e54b50b32167bd1712f544.tar.gz
Fix from Doug Rabson for a panic related to not initializing the kernel's
PTD. Submitted by: John Dyson
-rw-r--r--sys/amd64/amd64/pmap.c3
-rw-r--r--sys/i386/i386/pmap.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index bb97387..97b85c4 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
- * $Id: pmap.c,v 1.45 1995/01/26 00:55:03 davidg Exp $
+ * $Id: pmap.c,v 1.46 1995/01/26 01:45:02 davidg Exp $
*/
/*
@@ -612,6 +612,7 @@ pmap_growkernel(vm_offset_t addr)
*pmap_pde(pmap, kernel_vm_end) = pdir_pde(PTD, kernel_vm_end);
}
}
+ *pmap_pde(kernel_pmap, kernel_vm_end) = pdir_pde(PTD, kernel_vm_end);
kernel_vm_end = (kernel_vm_end + NBPG * NPTEPG) & ~(NBPG * NPTEPG - 1);
}
splx(s);
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index bb97387..97b85c4 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* from: @(#)pmap.c 7.7 (Berkeley) 5/12/91
- * $Id: pmap.c,v 1.45 1995/01/26 00:55:03 davidg Exp $
+ * $Id: pmap.c,v 1.46 1995/01/26 01:45:02 davidg Exp $
*/
/*
@@ -612,6 +612,7 @@ pmap_growkernel(vm_offset_t addr)
*pmap_pde(pmap, kernel_vm_end) = pdir_pde(PTD, kernel_vm_end);
}
}
+ *pmap_pde(kernel_pmap, kernel_vm_end) = pdir_pde(PTD, kernel_vm_end);
kernel_vm_end = (kernel_vm_end + NBPG * NPTEPG) & ~(NBPG * NPTEPG - 1);
}
splx(s);
OpenPOWER on IntegriCloud