When allocating new PT pages during early bootstrap (i.e. before

pmap_init() has finished), make sure to zero them.
This commit is contained in:
thorpej 2000-06-02 17:46:37 +00:00
parent 7e6435a651
commit 7a5ce477cb
3 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.90 2000/05/19 04:34:40 thorpej Exp $ */
/* $NetBSD: pmap.c,v 1.91 2000/06/02 17:46:37 thorpej Exp $ */
/*
*
@ -3647,6 +3647,7 @@ pmap_growkernel(maxkvaddr)
if (uvm_page_physget(&ptaddr) == FALSE)
panic("pmap_growkernel: out of memory");
pmap_zero_page(ptaddr);
kpm->pm_pdir[PDSLOT_KERN + nkpde] =
ptaddr | PG_RW | PG_V;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.49 2000/04/12 06:23:21 matthias Exp $ */
/* $NetBSD: pmap.c,v 1.50 2000/06/02 17:46:45 thorpej Exp $ */
/*
*
@ -3385,6 +3385,7 @@ pmap_growkernel(maxkvaddr)
if (uvm_page_physget(&ptaddr) == FALSE)
panic("pmap_growkernel: out of memory");
pmap_zero_page(ptaddr);
kpm->pm_pdir[PDSLOT_KERN + nkpde] =
ptaddr | PG_RW | PG_V;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.7 2000/04/24 08:40:21 tsubai Exp $ */
/* $NetBSD: pmap.c,v 1.8 2000/06/02 17:46:43 thorpej Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@ -3337,6 +3337,7 @@ pmap_growkernel(maxkvaddr)
if (uvm_page_physget(&ptaddr) == FALSE)
panic("pmap_growkernel: out of memory");
pmap_zero_page(ptaddr);
kpm->pm_pdir[PDSLOT_KERN + nkpde] =
ptaddr | PG_RW | PG_V | PG_N | PG_4K | PG_M;