diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-08-06 15:15:52 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-08-06 15:15:52 +0000 |
commit | ddf3f4368877f7022c6b1017bcfd9be9387a2b25 (patch) | |
tree | 3dd90b3df1d342810f73a4d69a1035f445862fd6 /sys/arch/sparc64 | |
parent | b4f21e5439251332fc2031bb14c36dcb5ed38f2b (diff) |
catch 'break' and handle appropriately, I thought I had committed this long ago.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/dev/z8530tty.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/z8530tty.c b/sys/arch/sparc64/dev/z8530tty.c index a5b191569a9..59c864b2d2e 100644 --- a/sys/arch/sparc64/dev/z8530tty.c +++ b/sys/arch/sparc64/dev/z8530tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: z8530tty.c,v 1.5 2002/06/04 19:18:18 jason Exp $ */ +/* $OpenBSD: z8530tty.c,v 1.6 2002/08/06 15:15:51 jason Exp $ */ /* $NetBSD: z8530tty.c,v 1.77 2001/05/30 15:24:24 lukem Exp $ */ /*- @@ -1330,6 +1330,13 @@ zstty_txint(cs) } } +#ifdef DDB +#include <ddb/db_var.h> +#define DB_CONSOLE db_console +#else +#define DB_CONSOLE 1 +#endif + /* * status change interrupt. (splzs) */ @@ -1348,6 +1355,10 @@ zstty_stint(cs, force) * Check here for console break, so that we can abort * even when interrupts are locking up the machine. */ + if ((zst->zst_hwflags & ZS_HWFLAG_CONSOLE_INPUT) && + ISSET(rr0, ZSRR0_BREAK) && DB_CONSOLE) + zs_abort(cs); + if (!force) delta = rr0 ^ cs->cs_rr0; else |