main: add tty layer to kmain

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-12 00:14:46 -04:00
commit 7c7d052286

View file

@ -68,6 +68,14 @@ static void kmain()
/* start the kernel */
devfs_init();
device_layer_init();
tty_layer_init();
/* init main fallback tty */
struct tty *main_tty = NULL;
serial_port_tty_init(&main_tty);
tty_printf = main_tty;
do_initcalls();
/* do nothing, for now :) */