Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sun2/sun2 Cast a vaddr_t (integral type) to void* b...



details:   https://anonhg.NetBSD.org/src/rev/6a9cae6e7162
branches:  trunk
changeset: 749400:6a9cae6e7162
user:      he <he%NetBSD.org@localhost>
date:      Sat Nov 28 21:37:28 2009 +0000

description:
Cast a vaddr_t (integral type) to void* before passing to memset.

diffstat:

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

diffs (27 lines):

diff -r c55897ecf7b2 -r 6a9cae6e7162 sys/arch/sun2/sun2/locore2.c
--- a/sys/arch/sun2/sun2/locore2.c      Sat Nov 28 21:32:46 2009 +0000
+++ b/sys/arch/sun2/sun2/locore2.c      Sat Nov 28 21:37:28 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore2.c,v 1.23 2009/11/27 03:23:14 rmind Exp $       */
+/*     $NetBSD: locore2.c,v 1.24 2009/11/28 21:37:28 he Exp $  */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: locore2.c,v 1.23 2009/11/27 03:23:14 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locore2.c,v 1.24 2009/11/28 21:37:28 he Exp $");
 
 #include "opt_ddb.h"
 #include "opt_modular.h"
@@ -187,7 +187,7 @@
         * (The fault handler may reference lwp0 stuff.)
         */
        uvm_lwp_setuarea(&lwp0, nextva);
-       memset(nextva, 0, USPACE);
+       memset((void *)nextva, 0, USPACE);
 
        nextva += USPACE;
 



Home | Main Index | Thread Index | Old Index