1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:47:35 +00:00

Kernel/Graphics: Move all VGA related methods to GraphicsManagement

This helps solving an issue when we boot with text mode screen so the
Kernel initializes an early text mode console, but even after disabling
it, that console can still access VGA ports. This wouldn't be a problem
for emulated hardware but bare metal hardware might have a "conflict",
especially if the native driver explicitly request to disable the VGA
emulation.
This commit is contained in:
Liav A 2022-03-15 21:41:22 +02:00 committed by Linus Groh
parent f9bed65130
commit 0ef1137e88
4 changed files with 58 additions and 18 deletions

View file

@ -39,6 +39,8 @@ private:
TextModeConsole();
mutable Spinlock m_vga_lock;
size_t m_cursor_x { 0 };
size_t m_cursor_y { 0 };
VirtualAddress m_current_vga_window;
};