diff options
| author | deraadt <deraadt@NetBSD.org> | 1993-05-28 09:10:29 +0000 |
|---|---|---|
| committer | deraadt <deraadt@NetBSD.org> | 1993-05-28 09:10:29 +0000 |
| commit | 0b12df586db1b1e2796d11f8528e900cf830c78a (patch) | |
| tree | 0f457e131c44d89ce21a818d16f6ab51dcc99067 /sys/dev | |
| parent | 414f33710e2274f482c9063c483a7199408ef022 (diff) | |
1. It is now possible to build a kernel that does not have a pc0 device driver.
2. "press any key to reboot" reads the key from the console.
3. wddump() still needs a non-blocking getc() routine (or flush)
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/cons.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/cons.c b/sys/dev/cons.c index 64d20e5d7f2..e8f9b510f0d 100644 --- a/sys/dev/cons.c +++ b/sys/dev/cons.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * from: @(#)cons.c 7.2 (Berkeley) 5/9/91 - * $Id: cons.c,v 1.5 1993/05/22 11:41:13 cgd Exp $ + * $Id: cons.c,v 1.6 1993/05/28 09:10:31 deraadt Exp $ */ @@ -53,14 +53,19 @@ #include "cons.h" /* XXX - all this could be autoconfig()ed */ +#include "pc.h" +#if NPC > 0 int pccnprobe(), pccninit(), pccngetc(), pccnputc(); +#endif #include "com.h" #if NCOM > 0 int comcnprobe(), comcninit(), comcngetc(), comcnputc(); #endif struct consdev constab[] = { +#if NPC > 0 { pccnprobe, pccninit, pccngetc, pccnputc }, +#endif #if NCOM > 0 { comcnprobe, comcninit, comcngetc, comcnputc }, #endif @@ -72,6 +77,10 @@ struct tty *constty = 0; /* virtual console output device */ struct consdev *cn_tab; /* physical console device info */ struct tty *cn_tty; /* XXX: console tty struct for tprintf */ +consinit() +{ +} + cninit() { register struct consdev *cp; |
