if installing page 2 as a PT page for first 4M (for BIOSCALL),

make sure we zero it first so that the PT is not filled
with random garbage
This commit is contained in:
chuck 1998-03-25 16:30:43 +00:00
parent a681a3706c
commit a30817ebaa
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.296 1998/03/22 16:04:31 drochner Exp $ */
/* $NetBSD: machdep.c,v 1.297 1998/03/25 16:30:43 chuck Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@ -1785,6 +1785,7 @@ init386(first_avail)
#if NBIOSCALL > 0
/* install page 2 (reserved above) as PT page for first 4M */
pmap_enter(pmap_kernel(), (u_long)vtopte(0), 2*NBPG, VM_PROT_ALL, TRUE);
bzero(vtopte(0), NBPG); /* make sure it is clean before using */
#endif
pmap_enter(pmap_kernel(), idt_vaddr, idt_paddr, VM_PROT_ALL, TRUE);