diff options
| author | mrg <mrg@NetBSD.org> | 2011-04-12 08:42:12 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2011-04-12 08:42:12 +0000 |
| commit | 70bc409d8df44202275186534bb1ccbbfeeff71d (patch) | |
| tree | b8e8ff1269a5ed11b50c1e9310d705fb9d46a85a | |
| parent | c2f7ec16e37a78837f9bb01f4cc6585f646f6be0 (diff) | |
include <sys/cpu.h> when using cpu specific info. fixes building
these as part of sparc64 crash(8).
| -rw-r--r-- | sys/ddb/db_lwp.c | 5 | ||||
| -rw-r--r-- | sys/ddb/db_print.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/ddb/db_lwp.c b/sys/ddb/db_lwp.c index 50a64c49393..c7299ae4ddb 100644 --- a/sys/ddb/db_lwp.c +++ b/sys/ddb/db_lwp.c @@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: db_lwp.c,v 1.6 2011/01/14 02:06:33 rmind Exp $"); #include <sys/param.h> #include <sys/cpu.h> #include <sys/proc.h> +#include <sys/cpu.h> #include <machine/pcb.h> diff --git a/sys/ddb/db_print.c b/sys/ddb/db_print.c index 1c12b7845d3..01f96298544 100644 --- a/sys/ddb/db_print.c +++ b/sys/ddb/db_print.c @@ -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> |
