diff options
author | 2001-09-23 07:05:06 +0000 | |
---|---|---|
committer | 2001-09-23 07:05:06 +0000 | |
commit | 040b64a9946786b6ad130f7c2423e3f55c6d29d1 (patch) | |
tree | 677556ac6cd8300ab1fa20651c9545aca30506c2 | |
parent | for cu, default to 9600 baud rate instead of 1200 (diff) | |
download | wireguard-openbsd-040b64a9946786b6ad130f7c2423e3f55c6d29d1.tar.xz wireguard-openbsd-040b64a9946786b6ad130f7c2423e3f55c6d29d1.zip |
For serial console, drop into ddb on <break> if ddb.console is nonzero
-rw-r--r-- | sys/arch/hp300/dev/apci.c | 13 | ||||
-rw-r--r-- | sys/arch/hp300/dev/dca.c | 12 |
2 files changed, 23 insertions, 2 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++; diff --git a/sys/arch/hp300/dev/dca.c b/sys/arch/hp300/dev/dca.c index f84bcd1e201..11e06aa1345 100644 --- a/sys/arch/hp300/dev/dca.c +++ b/sys/arch/hp300/dev/dca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dca.c,v 1.12 2001/06/27 05:44:46 nate Exp $ */ +/* $OpenBSD: dca.c,v 1.13 2001/09/23 07:05:06 millert Exp $ */ /* $NetBSD: dca.c,v 1.35 1997/05/05 20:58:18 thorpej Exp $ */ /* @@ -72,6 +72,10 @@ #include <hp300/dev/diodevs.h> #include <hp300/dev/dcareg.h> +#ifdef DDB +#include <ddb/db_var.h> +#endif + struct dca_softc { struct device sc_dev; /* generic device glue */ struct dcadevice *sc_dca; /* pointer to hardware */ @@ -614,6 +618,12 @@ dcaeint(sc, stat) #endif return; } +#if defined(DDB) && !defined(KGDB) + if ((sc->sc_flags & DCA_ISCONSOLE) && db_console && (stat & LSR_BI)) { + Debugger(); + return; + } +#endif if (stat & (LSR_BI | LSR_FE)) c |= TTY_FE; else if (stat & LSR_PE) |