Source-Changes-HG archive

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

[src/trunk]: src/sys/ddb include <sys/cpu.h> when using cpu specific info. f...



details:   https://anonhg.NetBSD.org/src/rev/48adcee5fa9f
branches:  trunk
changeset: 764143:48adcee5fa9f
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Apr 12 08:42:12 2011 +0000

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

diffstat:

 sys/ddb/db_lwp.c   |  5 +++--
 sys/ddb/db_print.c |  5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (48 lines):

diff -r 00d98dc41338 -r 48adcee5fa9f sys/ddb/db_lwp.c
--- a/sys/ddb/db_lwp.c  Tue Apr 12 08:40:34 2011 +0000
+++ b/sys/ddb/db_lwp.c  Tue Apr 12 08:42:12 2011 +0000
@@ -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>
 
diff -r 00d98dc41338 -r 48adcee5fa9f sys/ddb/db_print.c
--- a/sys/ddb/db_print.c        Tue Apr 12 08:40:34 2011 +0000
+++ b/sys/ddb/db_print.c        Tue Apr 12 08:42:12 2011 +0000
@@ -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>
 



Home | Main Index | Thread Index | Old Index