We need to initialize the console for dcons to work.

Submitted by:	nork@
This commit is contained in:
Warner Losh 2009-03-13 02:15:49 +00:00
parent 47193e464b
commit 3fdd7f1605

View File

@ -360,6 +360,7 @@ dcons_attach_port(int port, char *name, int flags)
tp = tty_alloc(&dcons_ttydevsw, dc, NULL);
dc->flags = flags;
dc->tty = tp;
tty_init_console(tp, 0);
tty_makedev(tp, NULL, "%s", name);
return(0);
}