summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_cons.c
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-04-08 21:32:11 +0000
committerjoerg <joerg@FreeBSD.org>1995-04-08 21:32:11 +0000
commit2feff74c285a9678d5c38db2c45437df72a5bfdb (patch)
tree39d4529134d7e712accc4219cbd917de8336bcb9 /sys/kern/tty_cons.c
parentc4c9cf1214969920aa1211a6e037a49c7cd0ff34 (diff)
downloadFreeBSD-src-2feff74c285a9678d5c38db2c45437df72a5bfdb.zip
FreeBSD-src-2feff74c285a9678d5c38db2c45437df72a5bfdb.tar.gz
Implement a simple hook (or hack?) to allow graphics device console
drivers to protect DDB from being invoked while the console is in process-controlled (i.e., graphics) mode. Implement the logic to use this hook from within pcvt. (I'm sure Søren will do the syscons part RSN). I've still got one occasion where the system stalled, but my attempts to trigger the situation artificially resulted int the expected behaviour. It's hard to track bugs without the console and DDB available. :-/
Diffstat (limited to 'sys/kern/tty_cons.c')
-rw-r--r--sys/kern/tty_cons.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c
index 36b8792..13cf848 100644
--- a/sys/kern/tty_cons.c
+++ b/sys/kern/tty_cons.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)cons.c 7.2 (Berkeley) 5/9/91
- * $Id: cons.c,v 1.23 1995/02/26 03:15:36 bde Exp $
+ * $Id: cons.c,v 1.24 1995/04/02 16:14:51 joerg Exp $
*/
#include <sys/param.h>
@@ -73,6 +73,10 @@ static struct consdev constab[] = {
struct tty *constty = 0; /* virtual console output device */
struct tty *cn_tty; /* XXX: console tty struct for tprintf */
+int cons_unavail = 0; /* XXX:
+ * physical console not available for
+ * input (i.e., it is in graphics mode)
+ */
static u_char cn_is_open; /* nonzero if logical console is open */
static u_char cn_phys_is_open; /* nonzero if physical console is open */
OpenPOWER on IntegriCloud