X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/bef1210245bb3180a57f26405369654eaa477f63..e0cd8f9c44808642b2f4ebb17202e1ec477db78a:/lunaix-os/hal/term/console.c diff --git a/lunaix-os/hal/term/console.c b/lunaix-os/hal/term/console.c index 7d9b57b..ea479a3 100644 --- a/lunaix-os/hal/term/console.c +++ b/lunaix-os/hal/term/console.c @@ -4,6 +4,7 @@ #include #include #include +#include #include @@ -34,12 +35,14 @@ setup_default_tty() assert(device_addalias(NULL, dev_meta(dev), "tty")); - if (!device_get_capability(dev, TERMIOS_CAP)) { + if (!device_get_potens(dev, potens(TERMPORT))) { FATAL("not a terminal device: %s", console_dev); } INFO("system console: %s", console_dev); sysconsole = dev; + + kprintf_dump_logs(); } -lunaix_initfn(setup_default_tty, call_on_boot); \ No newline at end of file +owloysius_fetch_init(setup_default_tty, on_boot); \ No newline at end of file