summaryrefslogtreecommitdiff
path: root/Kernel/Graphics/Console/ContiguousFramebufferConsole.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Graphics/Console/ContiguousFramebufferConsole.cpp')
-rw-r--r--Kernel/Graphics/Console/ContiguousFramebufferConsole.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Graphics/Console/ContiguousFramebufferConsole.cpp b/Kernel/Graphics/Console/ContiguousFramebufferConsole.cpp
index 12a7cd45ca..fe74603f72 100644
--- a/Kernel/Graphics/Console/ContiguousFramebufferConsole.cpp
+++ b/Kernel/Graphics/Console/ContiguousFramebufferConsole.cpp
@@ -27,8 +27,8 @@ void ContiguousFramebufferConsole::set_resolution(size_t width, size_t height, s
m_height = height;
m_pitch = pitch;
- dbgln("Framebuffer Console: taking {} bytes", page_round_up(pitch * height));
- m_framebuffer_region = MM.allocate_kernel_region(m_framebuffer_address, page_round_up(pitch * height), "Framebuffer Console", Region::Access::Read | Region::Access::Write, Region::Cacheable::Yes);
+ dbgln("Framebuffer Console: taking {} bytes", Memory::page_round_up(pitch * height));
+ m_framebuffer_region = MM.allocate_kernel_region(m_framebuffer_address, Memory::page_round_up(pitch * height), "Framebuffer Console", Memory::Region::Access::Read | Memory::Region::Access::Write, Memory::Region::Cacheable::Yes);
VERIFY(m_framebuffer_region);
// Just to start cleanly, we clean the entire framebuffer