diff options
| author | mycroft <mycroft@NetBSD.org> | 1995-06-04 20:50:14 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1995-06-04 20:50:14 +0000 |
| commit | 5b37a8fdeda34f8e0fe017af555da44942c6fbf1 (patch) | |
| tree | 12c3b7ae1c004b0a13a77e17240dc08a1a05789b /sys/dev | |
| parent | ad6a2b10b2c21f1406c142658a541b6774bc5259 (diff) | |
Handle BREAK correctly when not entering DDB.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/com.c | 16 | ||||
| -rw-r--r-- | sys/dev/isa/com.c | 16 |
2 files changed, 18 insertions, 14 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c index a5c0c7f2a5e..45031de9376 100644 --- a/sys/dev/ic/com.c +++ b/sys/dev/ic/com.c @@ -1,4 +1,4 @@ -/* $NetBSD: com.c,v 1.57 1995/06/04 20:39:22 mycroft Exp $ */ +/* $NetBSD: com.c,v 1.58 1995/06/04 20:50:14 mycroft Exp $ */ /*- * Copyright (c) 1993, 1994, 1995 Charles M. Hannum. All rights reserved. @@ -816,14 +816,16 @@ comintr(arg) comevents = 1; do { + if ((lsr & LSR_BI) != 0) { #ifdef DDB - if ((lsr & LSR_BI) != 0 && - sc->sc_dev.dv_unit == comconsole) { - Debugger(); - goto next; - } + if (sc->sc_dev.dv_unit == comconsole) { + Debugger(); + goto next; + } else #endif - data = inb(iobase + com_data); + data = '\0'; + } else + data = inb(iobase + com_data); if (p >= sc->sc_ibufend) { sc->sc_floods++; if (sc->sc_errors++ == 0) diff --git a/sys/dev/isa/com.c b/sys/dev/isa/com.c index a5c0c7f2a5e..45031de9376 100644 --- a/sys/dev/isa/com.c +++ b/sys/dev/isa/com.c @@ -1,4 +1,4 @@ -/* $NetBSD: com.c,v 1.57 1995/06/04 20:39:22 mycroft Exp $ */ +/* $NetBSD: com.c,v 1.58 1995/06/04 20:50:14 mycroft Exp $ */ /*- * Copyright (c) 1993, 1994, 1995 Charles M. Hannum. All rights reserved. @@ -816,14 +816,16 @@ comintr(arg) comevents = 1; do { + if ((lsr & LSR_BI) != 0) { #ifdef DDB - if ((lsr & LSR_BI) != 0 && - sc->sc_dev.dv_unit == comconsole) { - Debugger(); - goto next; - } + if (sc->sc_dev.dv_unit == comconsole) { + Debugger(); + goto next; + } else #endif - data = inb(iobase + com_data); + data = '\0'; + } else + data = inb(iobase + com_data); if (p >= sc->sc_ibufend) { sc->sc_floods++; if (sc->sc_errors++ == 0) |
