forked from Bananymous/banan-os
Kernel: Don't require framebuffer
Initializes virtual tty only if framebuffer is initialized
This commit is contained in:
parent
5977341610
commit
31aa157201
|
@ -117,7 +117,7 @@ extern "C" void kernel_main()
|
||||||
dprintln("PageTable initialized");
|
dprintln("PageTable initialized");
|
||||||
|
|
||||||
g_terminal_driver = VesaTerminalDriver::create();
|
g_terminal_driver = VesaTerminalDriver::create();
|
||||||
ASSERT(g_terminal_driver);
|
if (g_terminal_driver)
|
||||||
dprintln("VESA initialized");
|
dprintln("VESA initialized");
|
||||||
|
|
||||||
Heap::initialize();
|
Heap::initialize();
|
||||||
|
@ -147,8 +147,11 @@ extern "C" void kernel_main()
|
||||||
dprintln("Serial devices initialized");
|
dprintln("Serial devices initialized");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (g_terminal_driver)
|
||||||
|
{
|
||||||
auto vtty = MUST(VirtualTTY::create(g_terminal_driver));
|
auto vtty = MUST(VirtualTTY::create(g_terminal_driver));
|
||||||
dprintln("Virtual TTY initialized");
|
dprintln("Virtual TTY initialized");
|
||||||
|
}
|
||||||
|
|
||||||
MUST(Scheduler::initialize());
|
MUST(Scheduler::initialize());
|
||||||
dprintln("Scheduler initialized");
|
dprintln("Scheduler initialized");
|
||||||
|
|
Loading…
Reference in New Issue