summaryrefslogtreecommitdiff
path: root/sys/ddb
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/ddb
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/ddb')
-rw-r--r--sys/ddb/db_usrreq.c8
-rw-r--r--sys/ddb/db_var.h13
2 files changed, 13 insertions, 8 deletions
diff --git a/sys/ddb/db_usrreq.c b/sys/ddb/db_usrreq.c
index a303f9243ad..52f73fa22da 100644
--- a/sys/ddb/db_usrreq.c
+++ b/sys/ddb/db_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_usrreq.c,v 1.2 1997/12/29 14:31:19 deraadt Exp $ */
+/* $OpenBSD: db_usrreq.c,v 1.3 1998/02/05 16:49:22 deraadt Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff. All rights reserved.
@@ -62,8 +62,10 @@ ddb_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
return sysctl_int(oldp, oldlenp, newp, newlen, &db_tab_stop_width);
case DBCTL_MAXLINE:
return sysctl_int(oldp, oldlenp, newp, newlen, &db_max_line);
- case DBCTL_PANICDDB:
- return sysctl_int(oldp, oldlenp, newp, newlen, &db_panic_ddb);
+ case DBCTL_PANIC:
+ return sysctl_int(oldp, oldlenp, newp, newlen, &db_panic);
+ case DBCTL_CONSOLE:
+ return sysctl_int(oldp, oldlenp, newp, newlen, &db_console);
default:
return (EOPNOTSUPP);
}
diff --git a/sys/ddb/db_var.h b/sys/ddb/db_var.h
index ab3ad37a531..987b4e6a880 100644
--- a/sys/ddb/db_var.h
+++ b/sys/ddb/db_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_var.h,v 1.3 1997/12/29 14:31:19 deraadt Exp $ */
+/* $OpenBSD: db_var.h,v 1.4 1998/02/05 16:49:23 deraadt Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff. All rights reserved.
@@ -44,8 +44,9 @@
#define DBCTL_MAXWIDTH 2
#define DBCTL_MAXLINE 3
#define DBCTL_TABSTOP 4
-#define DBCTL_PANICDDB 5
-#define DBCTL_MAXID 6
+#define DBCTL_PANIC 5
+#define DBCTL_CONSOLE 6
+#define DBCTL_MAXID 7
#define CTL_DDB_NAMES { \
{ NULL, 0 }, \
@@ -53,7 +54,8 @@
{ "max_width", CTLTYPE_INT }, \
{ "max_line", CTLTYPE_INT }, \
{ "tab_stop_width", CTLTYPE_INT },\
- { "panic_ddb", CTLTYPE_INT }, \
+ { "panic", CTLTYPE_INT }, \
+ { "console", CTLTYPE_INT }, \
}
#ifdef _KERNEL
@@ -62,7 +64,8 @@ extern int db_radix;
extern int db_max_width;
extern int db_tab_stop_width;
extern int db_max_line;
-extern int db_panic_ddb;
+extern int db_panic;
+extern int db_console;
int ddb_sysctl __P((int *, u_int, void *, size_t *, void *, size_t,
struct proc *));