From 65e7b878d4be8c7bd0e7b44f308dbf03fb7ad01a Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 17 Feb 2006 10:23:16 +0000 Subject: [PATCH] getmachine info first, then init tty. Problem report and fix given by: Prof: Alejandro T. Bello Ruiz --- drivers/tty/tty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.44.0