diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-05-13 00:22:22 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-05-13 00:22:22 +0000 |
commit | b6782d08f2f6e5bee5ebb5b4d296eb6a25c5029f (patch) | |
tree | a2f285d79925e9f168534486630f3f373fa1d450 /sys/arch | |
parent | 9c57393a60465aae060b1d25ea46d0b95bf95714 (diff) |
Honor the ddb.console sysctl.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sun3/dev/zs.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/sun3/dev/zs.c b/sys/arch/sun3/dev/zs.c index 66f8a2fb978..28cf5bd432d 100644 --- a/sys/arch/sun3/dev/zs.c +++ b/sys/arch/sun3/dev/zs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zs.c,v 1.9 1999/01/11 05:12:03 millert Exp $ */ +/* $OpenBSD: zs.c,v 1.10 2001/05/13 00:22:21 miod Exp $ */ /* $NetBSD: zs.c,v 1.42 1996/11/20 18:57:03 gwr Exp $ */ /*- @@ -66,6 +66,10 @@ #include <machine/obio.h> #include <machine/mon.h> +#ifdef DDB +#include <ddb/db_var.h> +#endif + /* * XXX: Hard code this to make console init easier... */ @@ -691,6 +695,7 @@ zs_abort() ZS_DELAY(); } while (rr0 & ZSRR0_BREAK); #ifdef DDB - Debugger(); + if (db_console) + Debugger(); #endif } |