mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +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:
parent
24f2f3ba4e
commit
4c506f91fe
6 changed files with 33 additions and 17 deletions
|
@ -19,14 +19,7 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
class BochsGraphicsAdapter;
|
||||
class IntelNativeGraphicsAdapter;
|
||||
class VGACompatibleAdapter;
|
||||
class GraphicsManagement {
|
||||
friend class BochsGraphicsAdapter;
|
||||
friend class IntelNativeGraphicsAdapter;
|
||||
friend class VGACompatibleAdapter;
|
||||
friend class Graphics::VirtIOGPU::GraphicsAdapter;
|
||||
|
||||
public:
|
||||
static GraphicsManagement& the();
|
||||
|
@ -42,6 +35,7 @@ public:
|
|||
|
||||
Spinlock& main_vga_lock() { return m_main_vga_lock; }
|
||||
RefPtr<Graphics::Console> console() const { return m_console; }
|
||||
void set_console(Graphics::Console&);
|
||||
|
||||
void deactivate_graphical_mode();
|
||||
void activate_graphical_mode();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue