From de6ef642291f1509f690956bd6424b6739b0fd03 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Mon, 2 Jan 2006 21:44:53 +0000 Subject: Check db_console before entering ddb. --- sys/arch/vax/vax/db_machdep.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/vax/vax/db_machdep.c b/sys/arch/vax/vax/db_machdep.c index cbbf7da741b..c1e1117a9ed 100644 --- a/sys/arch/vax/vax/db_machdep.c +++ b/sys/arch/vax/vax/db_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.c,v 1.14 2005/11/24 04:55:49 brad Exp $ */ +/* $OpenBSD: db_machdep.c,v 1.15 2006/01/02 21:44:52 miod Exp $ */ /* $NetBSD: db_machdep.c,v 1.17 1999/06/20 00:58:23 ragge Exp $ */ /* @@ -59,6 +59,7 @@ #include #include #include +#include #include extern label_t *db_recover; @@ -507,7 +508,8 @@ kdbrint(tkn) { if (ddbescape && ((tkn & 0x7f) == 'D')) { - mtpr(0xf, PR_SIRR); + if (db_console) + mtpr(0xf, PR_SIRR); ddbescape = 0; return 1; } -- cgit v1.2.3