Remove unnecessary bzero() op for proc0's USPACE as pmap_steal_memory()

returns a nullified area.
This commit is contained in:
nisimura 2000-03-27 01:24:55 +00:00
parent 2ee63332b3
commit 795ee9db8e
1 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.4 2000/03/25 10:14:13 nisimura Exp $ */
/* $NetBSD: machdep.c,v 1.5 2000/03/27 01:24:55 nisimura Exp $ */
/*
* Copyright (c) 2000 Soren S. Jorvang. All rights reserved.
@ -257,7 +257,6 @@ mach_init(void)
p0 = (caddr_t)pmap_steal_memory(USPACE, NULL, NULL);
proc0.p_addr = proc0paddr = (struct user *)p0;
proc0.p_md.md_regs = (struct frame *)((caddr_t)p0 + USPACE) - 1;
memset(p0, 0, USPACE);
curpcb = &proc0.p_addr->u_pcb;
curpcb->pcb_context[11] = MIPS_INT_MASK | MIPS_SR_INT_IE; /* SR */