summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2006-01-02 21:44:52 +0000
committermiod <miod@openbsd.org>2006-01-02 21:44:52 +0000
commit0923035810b00b87be878a451c479e8e14b978c3 (patch)
tree14d9c57cddc29ff104233aaa6826f2bb1e1db691
parentadd missing section number; (diff)
downloadwireguard-openbsd-0923035810b00b87be878a451c479e8e14b978c3.tar.xz
wireguard-openbsd-0923035810b00b87be878a451c479e8e14b978c3.zip
Check db_console before entering ddb.
-rw-r--r--sys/arch/vax/vax/db_machdep.c6
1 files changed, 4 insertions, 2 deletions
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 <ddb/db_extern.h>
#include <ddb/db_access.h>
#include <ddb/db_interface.h>
+#include <ddb/db_var.h>
#include <ddb/db_variables.h>
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;
}