Kernel/Graphics: Assign console to be from VGACompatibleAdapter always

If we create a VGACompatibleAdapter object with a preset framebuffer,
Always assign the console so we can use it.

This is useful for modesetting done by a Multiboot loader, like GRUB.
This commit is contained in:
Liav A 2021-05-16 22:05:55 +03:00 committed by Linus Groh
parent 58d7eb36ad
commit 7f3080c8f2
Notes: sideshowbarker 2024-07-18 17:59:32 +09:00

View file

@ -51,6 +51,8 @@ UNMAP_AFTER_INIT VGACompatibleAdapter::VGACompatibleAdapter(PCI::Address address
, m_framebuffer_pitch(framebuffer_pitch)
{
m_framebuffer_console = Graphics::FramebufferConsole::initialize(framebuffer_address, framebuffer_width, framebuffer_height, framebuffer_pitch);
// FIXME: This is a very wrong way to do this...
GraphicsManagement::the().m_console = m_framebuffer_console;
}
void VGACompatibleAdapter::enable_consoles()