Module Name: src Committed By: skrll Date: Mon Apr 2 13:18:04 UTC 2012
Modified Files: src/sys/arch/hppa/hppa: db_machdep.c Log Message: Fix crash(8) build on hppa. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/arch/hppa/hppa/db_machdep.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/arch/hppa/hppa/db_machdep.c diff -u src/sys/arch/hppa/hppa/db_machdep.c:1.6 src/sys/arch/hppa/hppa/db_machdep.c:1.7 --- src/sys/arch/hppa/hppa/db_machdep.c:1.6 Thu Mar 29 20:31:49 2012 +++ src/sys/arch/hppa/hppa/db_machdep.c Mon Apr 2 13:18:04 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: db_machdep.c,v 1.6 2012/03/29 20:31:49 skrll Exp $ */ +/* $NetBSD: db_machdep.c,v 1.7 2012/04/02 13:18:04 skrll Exp $ */ /*- * Copyright (c) 2010 The NetBSD Foundation, Inc. @@ -30,18 +30,23 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.6 2012/03/29 20:31:49 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.7 2012/04/02 13:18:04 skrll Exp $"); #include <sys/param.h> #include <sys/lwp.h> #include <machine/db_machdep.h> +#include <machine/psl.h> #include <ddb/db_command.h> #include <ddb/db_output.h> #include <ddb/db_variables.h> #include <ddb/db_access.h> +#ifndef _KERNEL +#include <util.h> +#endif + db_regs_t ddb_regs; const struct db_variable db_regs[] = { { "flags", (long *)&ddb_regs.tf_flags, FCN_NULL, NULL },