diff --git a/src/driver/tty.c b/src/driver/tty.c index 9b808e2..9c79780 100644 --- a/src/driver/tty.c +++ b/src/driver/tty.c @@ -37,7 +37,6 @@ tty_t* default_tty_alloc(){ tty->fifo = kmalloc(sizeof(struct FIFO8)); char* buf = kmalloc(512); fifo8_init(tty->fifo, 512, (unsigned char *)buf); - return tty; } @@ -56,5 +55,9 @@ void tty_init(void){ default_tty.putchar = tty_putchar; strcpy(default_tty.name,"ost/default"); + default_tty.fifo = kmalloc(sizeof(struct FIFO8)); + char* buf = kmalloc(512); + fifo8_init(default_tty.fifo, 512, (unsigned char *)buf); + tty_status = TTY_VGA_OUTPUT; } \ No newline at end of file