From 4275d2ce48ee6dc112863fa0fdec0a5d11508e50 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 28 Nov 2023 23:51:28 +0200 Subject: [PATCH] Kernel: Add framebuffer device to devfs --- kernel/kernel/kernel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/kernel/kernel.cpp b/kernel/kernel/kernel.cpp index c7193fcad9..1990356078 100644 --- a/kernel/kernel/kernel.cpp +++ b/kernel/kernel/kernel.cpp @@ -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(); if (!framebuffer_device.is_error()) + { + DevFileSystem::get().add_device(framebuffer_device.value()); g_terminal_driver = FramebufferTerminalDriver::create(framebuffer_device.value()); + } if (g_terminal_driver) dprintln("Framebuffer terminal initialized");