diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-02-12 22:41:36 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-02-12 22:41:36 +0000 |
commit | 9cf25eef3f26dabc6168f9d812f6c0d70c07d94d (patch) | |
tree | 58ff2671989533dd49eb4be80a98fe02fad6ed1b /sys/arch/powerpc | |
parent | 21346686bf5ddd8f650fec121ebd08f040ff15c2 (diff) |
move ddb_regs decl from .h to .c to avoid common
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r-- | sys/arch/powerpc/ddb/db_trace.c | 4 | ||||
-rw-r--r-- | sys/arch/powerpc/include/db_machdep.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/powerpc/ddb/db_trace.c b/sys/arch/powerpc/ddb/db_trace.c index 3f683851ba8..63214acd6fc 100644 --- a/sys/arch/powerpc/ddb/db_trace.c +++ b/sys/arch/powerpc/ddb/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.1 2002/06/08 16:02:14 miod Exp $ */ +/* $OpenBSD: db_trace.c,v 1.2 2003/02/12 22:41:35 jason Exp $ */ /* $NetBSD: db_trace.c,v 1.15 1996/02/22 23:23:41 gwr Exp $ */ /* @@ -41,6 +41,8 @@ #include <ddb/db_interface.h> #include <ddb/db_output.h> +db_regs_t ddb_regs; + struct db_variable db_regs[] = { { "r0", (long *)&(DDB_REGS->tf.fixreg[0]), FCN_NULL }, { "r1", (long *)&(DDB_REGS->tf.fixreg[1]), FCN_NULL }, diff --git a/sys/arch/powerpc/include/db_machdep.h b/sys/arch/powerpc/include/db_machdep.h index 161a7d3d04c..e290e3beaea 100644 --- a/sys/arch/powerpc/include/db_machdep.h +++ b/sys/arch/powerpc/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.h,v 1.17 2002/08/06 03:33:23 drahn Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.18 2003/02/12 22:41:35 jason Exp $ */ /* $NetBSD: db_machdep.h,v 1.13 1996/04/29 20:50:08 leo Exp $ */ /* @@ -49,7 +49,7 @@ struct powerpc_saved_state { struct trapframe tf; }; typedef struct powerpc_saved_state db_regs_t; -db_regs_t ddb_regs; /* register state */ +extern db_regs_t ddb_regs; /* register state */ #define DDB_REGS (&ddb_regs) #define PC_REGS(regs) ((regs)->tf.srr0) |