1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00

Kernel: Disable BootFramebufferConsole when drivers create a new one

When GraphicsManagement initializes the drivers we can disable the
bootloader framebuffer console. Right now we don't yet fully destroy
the no longer needed console as it may be in use by another CPU.
This commit is contained in:
Tom 2022-01-29 14:08:05 -07:00 committed by Andreas Kling
parent 24f2f3ba4e
commit 4c506f91fe
6 changed files with 33 additions and 17 deletions

View file

@ -209,8 +209,7 @@ IntelNativeGraphicsAdapter::IntelNativeGraphicsAdapter(PCI::Address address)
VERIFY(m_framebuffer_height != 0);
VERIFY(m_framebuffer_width != 0);
m_framebuffer_console = Graphics::ContiguousFramebufferConsole::initialize(framebuffer_address, m_framebuffer_width, m_framebuffer_height, m_framebuffer_pitch);
// FIXME: This is a very wrong way to do this...
GraphicsManagement::the().m_console = m_framebuffer_console;
GraphicsManagement::the().set_console(*m_framebuffer_console);
}
void IntelNativeGraphicsAdapter::enable_vga_plane()