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)
This commit is contained in:
parent
414f33710e
commit
0b12df586d
@ -1 +1 @@
|
||||
revision 1.8 intentionally removed
|
||||
revision 1.9 intentionally removed
|
||||
|
@ -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;
|
||||
|
@ -35,7 +35,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.19 1993/05/27 16:44:20 cgd Exp $
|
||||
* $Id: machdep.c,v 1.20 1993/05/28 09:10:33 deraadt Exp $
|
||||
*/
|
||||
|
||||
#include "param.h"
|
||||
@ -548,7 +548,7 @@ boot(arghowto)
|
||||
splhigh();
|
||||
devtype = major(rootdev);
|
||||
if (howto&RB_HALT) {
|
||||
printf("\nThe operating system has halted. Please press any key to reboot.\n\n> ");
|
||||
printf("\nThe operating system has halted. Please press any key to reboot.\n\n");
|
||||
cngetc();
|
||||
} else {
|
||||
if (howto & RB_DUMP) {
|
||||
@ -1001,7 +1001,7 @@ init386(first)
|
||||
* If they get working well enough to recompile, they can unset
|
||||
* the flag; otherwise, it's a toy and they have to lump it.
|
||||
*/
|
||||
getchar(); /* kernel getchar in /sys/i386/isa/pccons.c*/
|
||||
cngetc();
|
||||
#endif /* !INFORM_WAIT*/
|
||||
}
|
||||
/*
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user