summaryrefslogtreecommitdiff
path: root/sys/arch/m68k
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-01-19 13:53:15 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-01-19 13:53:15 +0000
commitc3ada91906fd6634c78316f716fd9056bda53b8c (patch)
treea818f0a0df066b43412c8bbc7315b261a9606a93 /sys/arch/m68k
parentede88e43b531de70f5e2783e6fc654ee55b2b33b (diff)
From Gordon W Ross (NetBSD):
Use db_regs_t instead of struct mc68020_saved_state
Diffstat (limited to 'sys/arch/m68k')
-rw-r--r--sys/arch/m68k/include/db_machdep.h8
-rw-r--r--sys/arch/m68k/m68k/db_interface.c8
-rw-r--r--sys/arch/m68k/m68k/db_trace.c12
3 files changed, 14 insertions, 14 deletions
diff --git a/sys/arch/m68k/include/db_machdep.h b/sys/arch/m68k/include/db_machdep.h
index 1374f5e5db3..607f4e7caf7 100644
--- a/sys/arch/m68k/include/db_machdep.h
+++ b/sys/arch/m68k/include/db_machdep.h
@@ -1,5 +1,5 @@
-/* $OpenBSD: db_machdep.h,v 1.2 1996/05/09 22:25:15 niklas Exp $ */
-/* $NetBSD: db_machdep.h,v 1.13 1996/04/29 20:50:08 leo Exp $ */
+/* $OpenBSD: db_machdep.h,v 1.3 1997/01/19 13:53:09 niklas Exp $ */
+/* $NetBSD: db_machdep.h,v 1.14 1997/01/15 23:11:46 gwr Exp $ */
/*
* Mach Operating System
@@ -107,8 +107,8 @@ db_regs_t ddb_regs; /* register state */
#ifdef _KERNEL
-void kdb_kintr __P((struct mc68020_saved_state *));
-int kdb_trap __P((int, struct mc68020_saved_state *));
+void kdb_kintr __P((db_regs_t *));
+int kdb_trap __P((int, db_regs_t *));
#endif /* _KERNEL */
diff --git a/sys/arch/m68k/m68k/db_interface.c b/sys/arch/m68k/m68k/db_interface.c
index a2775212f8b..d60392bddd0 100644
--- a/sys/arch/m68k/m68k/db_interface.c
+++ b/sys/arch/m68k/m68k/db_interface.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: db_interface.c,v 1.7 1997/01/19 03:58:35 briggs Exp $ */
-/* $NetBSD: db_interface.c,v 1.22 1996/10/13 03:19:20 christos Exp $ */
+/* $OpenBSD: db_interface.c,v 1.8 1997/01/19 13:53:11 niklas Exp $ */
+/* $NetBSD: db_interface.c,v 1.23 1997/01/15 23:11:47 gwr Exp $ */
/*
* Mach Operating System
@@ -58,7 +58,7 @@ static void kdbprinttrap __P((int, int));
*/
void
kdb_kintr(regs)
- register struct mc68020_saved_state *regs;
+ register db_regs_t *regs;
{
if (db_active == 0 && (boothowto & RB_KDB)) {
printf("\n\nkernel: keyboard interrupt\n");
@@ -73,7 +73,7 @@ kdb_kintr(regs)
int
kdb_trap(type, regs)
int type;
- register struct mc68020_saved_state *regs;
+ register db_regs_t *regs;
{
switch (type) {
diff --git a/sys/arch/m68k/m68k/db_trace.c b/sys/arch/m68k/m68k/db_trace.c
index e9bf6b3b922..7ede3273c45 100644
--- a/sys/arch/m68k/m68k/db_trace.c
+++ b/sys/arch/m68k/m68k/db_trace.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: db_trace.c,v 1.6 1997/01/13 11:51:13 niklas Exp $ */
-/* $NetBSD: db_trace.c,v 1.16 1996/04/29 20:50:29 leo Exp $ */
+/* $OpenBSD: db_trace.c,v 1.7 1997/01/19 13:53:11 niklas Exp $ */
+/* $NetBSD: db_trace.c,v 1.17 1997/01/15 23:11:48 gwr Exp $ */
/*
* Mach Operating System
@@ -112,7 +112,7 @@ struct stackpos {
static void findentry __P((struct stackpos *));
static void findregs __P((struct stackpos *, db_addr_t));
static int nextframe __P((struct stackpos *, int));
-static void stacktop __P((struct mc68020_saved_state *, struct stackpos *));
+static void stacktop __P((db_regs_t *, struct stackpos *));
#define FR_SAVFP 0
@@ -122,7 +122,7 @@ static void stacktop __P((struct mc68020_saved_state *, struct stackpos *));
static void
stacktop(regs, sp)
- register struct mc68020_saved_state *regs;
+ register db_regs_t *regs;
register struct stackpos *sp;
{
sp->k_regloc[0] = (int) &regs->d0;
@@ -505,10 +505,10 @@ db_stack_trace_cmd(addr, have_addr, count, modif)
* Only have user register state.
*/
register pcb_t t_pcb;
- register struct mc68020_saved_state *user_regs;
+ register db_regs_t *user_regs;
t_pcb = (pcb_t) get(&th->pcb, 0);
- user_regs = (struct mc68020_saved_state *)
+ user_regs = (db_regs_t *)
get(&t_pcb->user_regs, 0);
stacktop(user_regs, &pos);