forked from Bananymous/banan-os
Kernel: Add framebuffer device to devfs
This commit is contained in:
parent
4a87d6052b
commit
4275d2ce48
|
@ -129,7 +129,10 @@ extern "C" void kernel_main(uint32_t boot_magic, uint32_t boot_info)
|
||||||
|
|
||||||
auto framebuffer_device = FramebufferDevice::create_from_boot_framebuffer();
|
auto framebuffer_device = FramebufferDevice::create_from_boot_framebuffer();
|
||||||
if (!framebuffer_device.is_error())
|
if (!framebuffer_device.is_error())
|
||||||
|
{
|
||||||
|
DevFileSystem::get().add_device(framebuffer_device.value());
|
||||||
g_terminal_driver = FramebufferTerminalDriver::create(framebuffer_device.value());
|
g_terminal_driver = FramebufferTerminalDriver::create(framebuffer_device.value());
|
||||||
|
}
|
||||||
if (g_terminal_driver)
|
if (g_terminal_driver)
|
||||||
dprintln("Framebuffer terminal initialized");
|
dprintln("Framebuffer terminal initialized");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue