diff --git a/Kernel/Graphics/Console/VGATextModeConsole.cpp b/Kernel/Graphics/Console/VGATextModeConsole.cpp index ea0dc78df2..9af77c0465 100644 --- a/Kernel/Graphics/Console/VGATextModeConsole.cpp +++ b/Kernel/Graphics/Console/VGATextModeConsole.cpp @@ -18,8 +18,8 @@ UNMAP_AFTER_INIT NonnullRefPtr VGATextModeConsole::initializ UNMAP_AFTER_INIT VGATextModeConsole::VGATextModeConsole() : Console(80, 25) - , m_vga_region(MM.allocate_kernel_region(PhysicalAddress(0xa0000), Memory::page_round_up(0xc0000 - 0xa0000).release_value_but_fixme_should_propagate_errors(), "VGA Display"sv, Memory::Region::Access::ReadWrite).release_value()) - , m_current_vga_window(m_vga_region->vaddr().offset(0x18000).as_ptr()) + , m_vga_window_region(MM.allocate_kernel_region(PhysicalAddress(0xa0000), Memory::page_round_up(0xc0000 - 0xa0000).release_value_but_fixme_should_propagate_errors(), "VGA Display"sv, Memory::Region::Access::ReadWrite).release_value()) + , m_current_vga_window(m_vga_window_region->vaddr().offset(0x18000).as_ptr()) { for (size_t index = 0; index < height(); index++) { clear_vga_row(index); diff --git a/Kernel/Graphics/Console/VGATextModeConsole.h b/Kernel/Graphics/Console/VGATextModeConsole.h index f890367c70..7bc3393462 100644 --- a/Kernel/Graphics/Console/VGATextModeConsole.h +++ b/Kernel/Graphics/Console/VGATextModeConsole.h @@ -40,7 +40,7 @@ private: mutable Spinlock m_vga_lock; - NonnullOwnPtr m_vga_region; + NonnullOwnPtr m_vga_window_region; VirtualAddress m_current_vga_window; };