Source-Changes-HG archive

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

[src/trunk]: src/sys/ddb Fix GENERIC_SUN4U build.



details:   https://anonhg.NetBSD.org/src/rev/cd037cf804bb
branches:  trunk
changeset: 764151:cd037cf804bb
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Tue Apr 12 17:46:38 2011 +0000

description:
Fix GENERIC_SUN4U build.

diffstat:

 sys/ddb/db_proc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0cd5a0990df7 -r cd037cf804bb sys/ddb/db_proc.c
--- a/sys/ddb/db_proc.c Tue Apr 12 17:10:51 2011 +0000
+++ b/sys/ddb/db_proc.c Tue Apr 12 17:46:38 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_proc.c,v 1.4 2011/04/10 20:59:22 christos Exp $     */
+/*     $NetBSD: db_proc.c,v 1.5 2011/04/12 17:46:38 nakayama Exp $     */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_proc.c,v 1.4 2011/04/10 20:59:22 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_proc.c,v 1.5 2011/04/12 17:46:38 nakayama Exp $");
 
 #ifndef _KERNEL
 #include <stdbool.h>
@@ -283,7 +283,7 @@
 
        switch (*mode) {
        case 'a':
-               lp = (lwp_t *)addr;
+               lp = (lwp_t *)(uintptr_t)addr;
                db_printf("lwp_t %lx\n", (long)lp);
                db_read_bytes((db_addr_t)lp, sizeof(l), (char *)&l);
                pp = l.l_proc;



Home | Main Index | Thread Index | Old Index