diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-03-05 17:24:28 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-03-05 17:24:28 +0000 |
commit | 1d0172aa638760dac8ca8e2bdc719ac4efbd0e6d (patch) | |
tree | a7995f1efd4927b99136e7311c38394569e3ace3 /sys/arch/socppc | |
parent | 5388689c8f35cbd5b90160b53d1f0b9f4f8c7c68 (diff) |
Define db_reg_t like the other archs by typedef'ing "struct trapframe".
This will allow us to use some of the DDB macros on trapframe which are
not DDB_REGS.
Diffstat (limited to 'sys/arch/socppc')
-rw-r--r-- | sys/arch/socppc/socppc/db_interface.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/socppc/socppc/db_interface.c b/sys/arch/socppc/socppc/db_interface.c index 927a88b24ef..6772076584b 100644 --- a/sys/arch/socppc/socppc/db_interface.c +++ b/sys/arch/socppc/socppc/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.2 2016/02/28 11:56:40 mpi Exp $ */ +/* $OpenBSD: db_interface.c,v 1.3 2016/03/05 17:24:27 mpi Exp $ */ /* $NetBSD: db_interface.c,v 1.12 2001/07/22 11:29:46 wiz Exp $ */ #include <sys/param.h> @@ -26,16 +26,16 @@ db_trap_glue(struct trapframe *frame) || (frame->exc == EXC_PGM && (frame->srr1 & 0x20000)) || frame->exc == EXC_BPT)) { - bcopy(frame->fixreg, DDB_REGS->tf.fixreg, + bcopy(frame->fixreg, DDB_REGS->fixreg, 32 * sizeof(u_int32_t)); - DDB_REGS->tf.srr0 = frame->srr0; - DDB_REGS->tf.srr1 = frame->srr1; + DDB_REGS->srr0 = frame->srr0; + DDB_REGS->srr1 = frame->srr1; cnpollc(TRUE); db_trap(T_BREAKPOINT, 0); cnpollc(FALSE); - bcopy(DDB_REGS->tf.fixreg, frame->fixreg, + bcopy(DDB_REGS->fixreg, frame->fixreg, 32 * sizeof(u_int32_t)); return 1; |