diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-09-23 07:05:07 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-09-23 07:05:07 +0000 |
commit | 952206fb17e6c70a2696919792396500e882e7cf (patch) | |
tree | 126984ffd716b82a9cb1aaed813786b5889e8cd6 /sys/arch/hp300/dev/apci.c | |
parent | 3e86e497af3299c7217b3923477aa80040fd9a05 (diff) |
For serial console, drop into ddb on <break> if ddb.console is nonzero
Diffstat (limited to 'sys/arch/hp300/dev/apci.c')
-rw-r--r-- | sys/arch/hp300/dev/apci.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/arch/hp300/dev/apci.c b/sys/arch/hp300/dev/apci.c index ce590bf9d15..260a000852c 100644 --- a/sys/arch/hp300/dev/apci.c +++ b/sys/arch/hp300/dev/apci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apci.c,v 1.10 2001/06/27 05:44:45 nate Exp $ */ +/* $OpenBSD: apci.c,v 1.11 2001/09/23 07:05:06 millert Exp $ */ /* $NetBSD: apci.c,v 1.9 2000/11/02 00:35:05 eeh Exp $ */ /*- @@ -121,6 +121,10 @@ #include <hp300/dev/apcireg.h> #include <hp300/dev/dcareg.h> /* register bit definitions */ +#ifdef DDB +#include <ddb/db_var.h> +#endif + struct apci_softc { struct device sc_dev; /* generic device glue */ struct apciregs *sc_apci; /* device registers */ @@ -557,6 +561,13 @@ apcieint(sc, stat) if ((tp->t_state & TS_ISOPEN) == 0) return; +#ifdef DDB + if ((sc->sc_flags & APCI_ISCONSOLE) && db_console && (stat & LSR_BI)) { + Debugger(); + return; + } +#endif + if (stat & (LSR_BI | LSR_FE)) { c |= TTY_FE; sc->sc_ferr++; |