getmachine info first, then init tty.

Problem report and fix given by:
Prof: Alejandro T. Bello Ruiz <abello@macareo.pucp.edu.pe>
This commit is contained in:
Ben Gras 2006-02-17 10:23:16 +00:00
parent 2827767745
commit 65e7b878d4

View File

@ -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();