Module Name: src
Committed By: pooka
Date: Sun Nov 29 15:13:22 UTC 2009
Modified Files:
src/sys/arch/sun3/sun3: locore2.c
Log Message:
Initialize before set.
To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/sys/arch/sun3/sun3/locore2.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/sun3/sun3/locore2.c
diff -u src/sys/arch/sun3/sun3/locore2.c:1.97 src/sys/arch/sun3/sun3/locore2.c:1.98
--- src/sys/arch/sun3/sun3/locore2.c:1.97 Sun Nov 29 15:06:40 2009
+++ src/sys/arch/sun3/sun3/locore2.c Sun Nov 29 15:13:22 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: locore2.c,v 1.97 2009/11/29 15:06:40 pooka Exp $ */
+/* $NetBSD: locore2.c,v 1.98 2009/11/29 15:13:22 pooka Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: locore2.c,v 1.97 2009/11/29 15:06:40 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locore2.c,v 1.98 2009/11/29 15:13:22 pooka Exp $");
#include "opt_ddb.h"
#include "opt_modular.h"
@@ -201,8 +201,8 @@
* fault handler works in case we hit an early bug.
* (The fault handler may reference lwp0 stuff.)
*/
- uvm_lwp_setuarea(&lwp0, nextva);
memset((void *)nextva, 0, USPACE);
+ uvm_lwp_setuarea(&lwp0, nextva);
nextva += USPACE;