mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 08:37:34 +00:00
Kernel/Graphics: Rename m_vga_region => m_vga_window_region
This commit is contained in:
parent
00dbd667d5
commit
f052b9574c
2 changed files with 3 additions and 3 deletions
|
@ -18,8 +18,8 @@ UNMAP_AFTER_INIT NonnullRefPtr<VGATextModeConsole> VGATextModeConsole::initializ
|
||||||
|
|
||||||
UNMAP_AFTER_INIT VGATextModeConsole::VGATextModeConsole()
|
UNMAP_AFTER_INIT VGATextModeConsole::VGATextModeConsole()
|
||||||
: Console(80, 25)
|
: 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_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_region->vaddr().offset(0x18000).as_ptr())
|
, m_current_vga_window(m_vga_window_region->vaddr().offset(0x18000).as_ptr())
|
||||||
{
|
{
|
||||||
for (size_t index = 0; index < height(); index++) {
|
for (size_t index = 0; index < height(); index++) {
|
||||||
clear_vga_row(index);
|
clear_vga_row(index);
|
||||||
|
|
|
@ -40,7 +40,7 @@ private:
|
||||||
|
|
||||||
mutable Spinlock m_vga_lock;
|
mutable Spinlock m_vga_lock;
|
||||||
|
|
||||||
NonnullOwnPtr<Memory::Region> m_vga_region;
|
NonnullOwnPtr<Memory::Region> m_vga_window_region;
|
||||||
VirtualAddress m_current_vga_window;
|
VirtualAddress m_current_vga_window;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue