From: Ben Gras Date: Fri, 17 Feb 2006 10:23:16 +0000 (+0000) Subject: getmachine info first, then init tty. X-Git-Tag: v3.1.2a~351 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/man.dnssec-dsfromkey.html?a=commitdiff_plain;h=65e7b878d4be8c7bd0e7b44f308dbf03fb7ad01a;p=minix.git getmachine info first, then init tty. Problem report and fix given by: Prof: Alejandro T. Bello Ruiz --- diff --git a/drivers/tty/tty.c b/drivers/tty/tty.c index a38364ec3..505bd1f27 100644 --- a/drivers/tty/tty.c +++ b/drivers/tty/tty.c @@ -177,14 +177,14 @@ PUBLIC void main(void) printf("TTY\n"); #endif - /* Initialize the TTY driver. */ - tty_init(); - /* Get kernel environment (protected_mode, pc_at and ega are needed). */ if (OK != (s=sys_getmachine(&machine))) { panic("TTY","Couldn't obtain kernel environment.", s); } + /* Initialize the TTY driver. */ + tty_init(); + /* Final one-time keyboard initialization. */ kb_init_once();