Module Name:    src
Committed By:   mrg
Date:           Tue Apr 12 08:42:12 UTC 2011

Modified Files:
        src/sys/ddb: db_lwp.c db_print.c

Log Message:
include <sys/cpu.h> when using cpu specific info.  fixes building
these as part of sparc64 crash(8).


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/ddb/db_lwp.c
cvs rdiff -u -r1.27 -r1.28 src/sys/ddb/db_print.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/ddb/db_lwp.c
diff -u src/sys/ddb/db_lwp.c:1.6 src/sys/ddb/db_lwp.c:1.7
--- src/sys/ddb/db_lwp.c:1.6	Fri Jan 14 02:06:33 2011
+++ src/sys/ddb/db_lwp.c	Tue Apr 12 08:42:12 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_lwp.c,v 1.6 2011/01/14 02:06:33 rmind Exp $	*/
+/*	$NetBSD: db_lwp.c,v 1.7 2011/04/12 08:42:12 mrg Exp $	*/
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_lwp.c,v 1.6 2011/01/14 02:06:33 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_lwp.c,v 1.7 2011/04/12 08:42:12 mrg Exp $");
 
 #ifndef _KERNEL
 #include <stdbool.h>
@@ -39,6 +39,7 @@
 #include <sys/param.h>
 #include <sys/cpu.h>
 #include <sys/proc.h>
+#include <sys/cpu.h>
 
 #include <machine/pcb.h>
 

Index: src/sys/ddb/db_print.c
diff -u src/sys/ddb/db_print.c:1.27 src/sys/ddb/db_print.c:1.28
--- src/sys/ddb/db_print.c:1.27	Sat Mar  7 22:02:17 2009
+++ src/sys/ddb/db_print.c	Tue Apr 12 08:42:12 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_print.c,v 1.27 2009/03/07 22:02:17 ad Exp $	*/
+/*	$NetBSD: db_print.c,v 1.28 2011/04/12 08:42:12 mrg Exp $	*/
 
 /*
  * Mach Operating System
@@ -34,10 +34,11 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_print.c,v 1.27 2009/03/07 22:02:17 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_print.c,v 1.28 2011/04/12 08:42:12 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
+#include <sys/cpu.h>
 
 #include <ddb/ddb.h>
 

Reply via email to