Module Name:    src
Committed By:   martin
Date:           Sat Dec 12 12:23:29 UTC 2009

Modified Files:
        src/sys/arch/vax/vax: vm_machdep.c

Log Message:
Clear new pcb in cpu_lwp_fork, now that this seems to no longer be
guaranteed to be zeroed memory after the uarea swap changes.
XXX shouldn't we zero the new uarea upfront in MI code before calling
uvm_lwp_fork?


To generate a diff of this commit:
cvs rdiff -u -r1.110 -r1.111 src/sys/arch/vax/vax/vm_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/vax/vax/vm_machdep.c
diff -u src/sys/arch/vax/vax/vm_machdep.c:1.110 src/sys/arch/vax/vax/vm_machdep.c:1.111
--- src/sys/arch/vax/vax/vm_machdep.c:1.110	Sun Nov 29 04:15:43 2009
+++ src/sys/arch/vax/vax/vm_machdep.c	Sat Dec 12 12:23:29 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: vm_machdep.c,v 1.110 2009/11/29 04:15:43 rmind Exp $	     */
+/*	$NetBSD: vm_machdep.c,v 1.111 2009/12/12 12:23:29 martin Exp $	     */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.110 2009/11/29 04:15:43 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.111 2009/12/12 12:23:29 martin Exp $");
 
 #include "opt_execfmt.h"
 #include "opt_compat_ultrix.h"
@@ -113,6 +113,11 @@
 #endif
 
 	/*
+	 * Clear new pcb
+	 */
+	memset(pcb2, 0, sizeof(*pcb2));
+
+	/*
 	 * Copy the trap frame.
 	 */
 	uv = uvm_lwp_getuarea(l2);

Reply via email to