Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/sparc64 In cpu_getmcontext(), initialize th...



details:   https://anonhg.NetBSD.org/src/rev/03cb6274ce15
branches:  trunk
changeset: 571021:03cb6274ce15
user:      kleink <kleink%NetBSD.org@localhost>
date:      Mon Nov 08 16:11:02 2004 +0000

description:
In cpu_getmcontext(), initialize the mcontext_t storage with 0 (not '0').
Reported by Arto Huusko.

diffstat:

 sys/arch/sparc64/sparc64/machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r be29d3bb6454 -r 03cb6274ce15 sys/arch/sparc64/sparc64/machdep.c
--- a/sys/arch/sparc64/sparc64/machdep.c        Mon Nov 08 14:24:17 2004 +0000
+++ b/sys/arch/sparc64/sparc64/machdep.c        Mon Nov 08 16:11:02 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.172 2004/10/31 21:59:51 martin Exp $ */
+/*     $NetBSD: machdep.c,v 1.173 2004/11/08 16:11:02 kleink Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.172 2004/10/31 21:59:51 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.173 2004/11/08 16:11:02 kleink Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_netbsd.h"
@@ -1895,7 +1895,7 @@
                sigexit(l, SIGILL);
 
        /* For now: Erase any random indicators for optional state. */
-       (void)memset(mcp, '0', sizeof (*mcp));
+       (void)memset(mcp, 0, sizeof (*mcp));
 
        /* Save general register context. */
 #ifdef __arch64__



Home | Main Index | Thread Index | Old Index