From b6782d08f2f6e5bee5ebb5b4d296eb6a25c5029f Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sun, 13 May 2001 00:22:22 +0000 Subject: Honor the ddb.console sysctl. --- sys/arch/sun3/dev/zs.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sys/arch') 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 #include +#ifdef DDB +#include +#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 } -- cgit v1.2.3