summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-05 16:49:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-05 16:49:41 +0000
commitbfb1b6126bcfdf842489313cd93b5e5a43512f3e (patch)
tree2a75a348bbc797d52960b5f52b7354f90cec7753 /sys/dev/ic
parentfe9553578b983f487fcb86562db0ab1434df2949 (diff)
rename ddb.panic_ddb, and add ddb.console. Now you can stop console ddb entry
with a sysctl. There will be architectures and drivers that lack function, and I trust the maintainers of those will forget to add the code..
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/com.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c
index 2a41167100f..65846062d83 100644
--- a/sys/dev/ic/com.c
+++ b/sys/dev/ic/com.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com.c,v 1.36 1997/09/03 20:55:28 deraadt Exp $ */
+/* $OpenBSD: com.c,v 1.37 1998/02/05 16:49:24 deraadt Exp $ */
/* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */
/*-
@@ -56,6 +56,9 @@
#include <sys/syslog.h>
#include <sys/types.h>
#include <sys/device.h>
+#ifdef DDB
+#include <ddb/db_var.h>
+#endif
#include <machine/bus.h>
#include <machine/intr.h>
@@ -1324,7 +1327,8 @@ comintr(arg)
#ifdef DDB
if (ISSET(sc->sc_hwflags,
COM_HW_CONSOLE)) {
- Debugger();
+ if (db_console)
+ Debugger();
goto next;
}
#endif