diff options
Diffstat (limited to 'sys/arch/mvme68k')
-rw-r--r-- | sys/arch/mvme68k/dev/zs.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/arch/mvme68k/dev/zs.c b/sys/arch/mvme68k/dev/zs.c index f0e4ca51bea..3c07acac9cd 100644 --- a/sys/arch/mvme68k/dev/zs.c +++ b/sys/arch/mvme68k/dev/zs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zs.c,v 1.19 2004/07/31 22:27:34 miod Exp $ */ +/* $OpenBSD: zs.c,v 1.20 2004/09/15 05:57:39 miod Exp $ */ /* * Copyright (c) 2000 Steve Murphree, Jr. @@ -45,6 +45,10 @@ #include <machine/conf.h> #include <machine/cpu.h> +#ifdef DDB +#include <ddb/db_var.h> +#endif + #include <dev/cons.h> #include <mvme68k/dev/scc.h> @@ -857,6 +861,15 @@ zs_extint(zp) rr0 = ZREAD0(&zp->scc); ZWRITE0(&zp->scc, 0x10);/* reset ext/status int */ + + /* Handle break */ + if (rr0 & 0x80) { +#ifdef DDB + if (ISSET(zp->flags, ZS_CONSOLE) && db_console != 0) + Debugger(); +#endif + } + if ((tp->t_cflag & CCTS_OFLOW) != 0) { if ((rr0 & 0x20) == 0) zp->hflags |= ZH_OBLOCK; |