diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2002-05-13 17:55:03 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2002-05-13 17:55:03 +0000 |
commit | 8bda25682358d61d8e9dc82ce0fc1675d57bd589 (patch) | |
tree | 7dba01fe6ca9c96e658420a8fded8732d784a432 /sys | |
parent | c866442bb5e16be2b5323fee961ceb1315393514 (diff) |
Add missing cnpollc() calls.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/macppc/macppc/db_interface.c | 6 | ||||
-rw-r--r-- | sys/arch/powerpc/powerpc/trap.c | 8 |
2 files changed, 12 insertions, 2 deletions
diff --git a/sys/arch/macppc/macppc/db_interface.c b/sys/arch/macppc/macppc/db_interface.c index 54bfb0f7f82..9495089a11f 100644 --- a/sys/arch/macppc/macppc/db_interface.c +++ b/sys/arch/macppc/macppc/db_interface.c @@ -1,10 +1,12 @@ -/* $OpenBSD: db_interface.c,v 1.2 2002/03/14 01:26:36 millert Exp $ */ +/* $OpenBSD: db_interface.c,v 1.3 2002/05/13 17:55:02 drahn Exp $ */ /* $NetBSD: db_interface.c,v 1.12 2001/07/22 11:29:46 wiz Exp $ */ #include <sys/param.h> #include <sys/proc.h> #include <sys/systm.h> +#include <dev/cons.h> + #include <machine/db_machdep.h> #include <ddb/db_extern.h> @@ -31,7 +33,9 @@ ddb_trap_glue(frame) DDB_REGS->tf.srr0 = frame->srr0; DDB_REGS->tf.srr1 = frame->srr1; + cnpollc(TRUE); db_trap(T_BREAKPOINT, 0); + cnpollc(FALSE); bcopy(DDB_REGS->tf.fixreg, frame->fixreg, 32 * sizeof(u_int32_t)); diff --git a/sys/arch/powerpc/powerpc/trap.c b/sys/arch/powerpc/powerpc/trap.c index a73f4bb7e74..c5359802e31 100644 --- a/sys/arch/powerpc/powerpc/trap.c +++ b/sys/arch/powerpc/powerpc/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.45 2002/03/14 23:51:47 drahn Exp $ */ +/* $OpenBSD: trap.c,v 1.46 2002/05/13 17:55:02 drahn Exp $ */ /* $NetBSD: trap.c,v 1.3 1996/10/13 03:31:37 christos Exp $ */ /* @@ -41,6 +41,8 @@ #include <sys/ktrace.h> #include <sys/pool.h> +#include <dev/cons.h> + #include <machine/cpu.h> #include <machine/fpu.h> #include <machine/frame.h> @@ -568,7 +570,9 @@ mpc_print_pci_stat(); /* instr = copyin (srr0) if (instr == BKPT_INST && uid == 0) { + cnpollc(TRUE); db_trap(T_BREAKPOINT?) + cnpollc(FALSE); break; } */ @@ -594,7 +598,9 @@ for (i = 0; i < errnum; i++) { /* should check for correct byte here or panic */ #ifdef DDB db_save_regs(frame); + cnpollc(TRUE); db_trap(T_BREAKPOINT, 0); + cnpollc(FALSE); #else panic("trap EXC_PGM"); #endif |