From 9cf25eef3f26dabc6168f9d812f6c0d70c07d94d Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Wed, 12 Feb 2003 22:41:36 +0000 Subject: move ddb_regs decl from .h to .c to avoid common --- sys/arch/powerpc/ddb/db_trace.c | 4 +++- sys/arch/powerpc/include/db_machdep.h | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/arch/powerpc') 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 #include +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) -- cgit v1.2.3