diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-02-05 16:49:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-02-05 16:49:41 +0000 |
commit | bfb1b6126bcfdf842489313cd93b5e5a43512f3e (patch) | |
tree | 2a75a348bbc797d52960b5f52b7354f90cec7753 /sys/ddb/db_var.h | |
parent | fe9553578b983f487fcb86562db0ab1434df2949 (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/db_var.h')
-rw-r--r-- | sys/ddb/db_var.h | 13 |
1 files changed, 8 insertions, 5 deletions
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 *)); |