-/* $OpenBSD: trap.c,v 1.9 1997/01/18 12:42:02 niklas Exp $ */
-/* $NetBSD: trap.c,v 1.52 1996/11/13 06:22:20 thorpej Exp $ */
+/* $OpenBSD: trap.c,v 1.10 1997/01/19 13:53:12 niklas Exp $ */
+/* $NetBSD: trap.c,v 1.53 1997/01/16 15:30:57 gwr Exp $ */
/*
* Copyright (c) 1988 University of Utah.
void trap __P((int, u_int, u_int, struct frame));
#ifdef DDB
#include <m68k/db_machdep.h>
-int kdb_trap __P((int, struct mc68020_saved_state *));
+int kdb_trap __P((int, db_regs_t *));
#endif
void syscall __P((register_t, struct frame));
void child_return __P((struct proc *, struct frame));
-/* $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
#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 */
-/* $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
*/
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");
int
kdb_trap(type, regs)
int type;
- register struct mc68020_saved_state *regs;
+ register db_regs_t *regs;
{
switch (type) {
-/* $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
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
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) ®s->d0;
* 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);
-/* $OpenBSD: machdep.c,v 1.13 1997/01/16 08:08:40 kstailey Exp $ */
+/* $OpenBSD: machdep.c,v 1.14 1997/01/19 13:53:14 niklas Exp $ */
/* $NetBSD: machdep.c,v 1.77 1996/10/13 03:47:51 christos Exp $ */
/*
printf("unexpected trap; vector offset 0x%x from 0x%x\n",
frame.tf_vector, frame.tf_pc);
#ifdef DDB
- /* XXX - Yuck! Make DDB use "struct trapframe" instead! */
- kdb_trap(-1, (struct mc68020_saved_state *) &frame);
+ kdb_trap(-1, (db_regs_t *) &frame);
#endif
}
-/* $OpenBSD: trap.c,v 1.8 1997/01/16 04:04:34 kstailey Exp $ */
-/* $NetBSD: trap.c,v 1.62 1996/12/17 21:35:31 gwr Exp $ */
+/* $OpenBSD: trap.c,v 1.9 1997/01/19 13:53:13 niklas Exp $ */
+/* $NetBSD: trap.c,v 1.63 1997/01/16 15:41:40 gwr Exp $ */
/*
* Copyright (c) 1994 Gordon W. Ross
goto kgdb_cont;
#endif
#ifdef DDB
- /* XXX - Yuck! Make DDB use "struct trapframe" instead! */
- (void) kdb_trap(type, (struct mc68020_saved_state *) &frame);
+ (void) kdb_trap(type, (db_regs_t *) &frame);
#endif
#ifdef KGDB
kgdb_cont: