diff options
author | joerg <joerg@FreeBSD.org> | 1995-04-08 21:32:11 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1995-04-08 21:32:11 +0000 |
commit | 2feff74c285a9678d5c38db2c45437df72a5bfdb (patch) | |
tree | 39d4529134d7e712accc4219cbd917de8336bcb9 /sys/kern/subr_prf.c | |
parent | c4c9cf1214969920aa1211a6e037a49c7cd0ff34 (diff) | |
download | FreeBSD-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/subr_prf.c')
-rw-r--r-- | sys/kern/subr_prf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index 8e57985..cc52cbb 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)subr_prf.c 8.3 (Berkeley) 1/21/94 - * $Id: subr_prf.c,v 1.11 1995/03/16 18:12:40 bde Exp $ + * $Id: subr_prf.c,v 1.12 1995/04/01 20:18:43 joerg Exp $ */ #include <sys/param.h> @@ -53,6 +53,7 @@ #include <sys/tprintf.h> #include <sys/syslog.h> #include <sys/malloc.h> +#include <machine/cons.h> /* * Note that stdarg.h and the ANSI style va_start macro is used for both @@ -64,14 +65,14 @@ #include <machine/kdbparam.h> #endif + #define TOCONS 0x01 #define TOTTY 0x02 #define TOLOG 0x04 struct tty *constty; /* pointer to console "window" tty */ -extern cnputc(); /* standard console putc */ -int (*v_putc)() = cnputc; /* routine to putc on virtual console */ +void (*v_putc)(int) = cnputc; /* routine to putc on virtual console */ void logpri __P((int level)); static void putchar __P((int ch, int flags, struct tty *tp)); |