From 010314ee66abeb539daf9e382453c14f0f4ca7c3 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Fri, 14 Jun 2019 16:41:36 +0300 Subject: [PATCH] VM: Make VMObject::create_for_physical_range() create non-freeable pages. This method is used in BXVGADevice to create pages for the framebuffer; we should neither make the PhysicalPage instances eternal, nor hand over actual physical pages to the memory allocator. --- Kernel/VM/VMObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/VM/VMObject.cpp b/Kernel/VM/VMObject.cpp index 0c6b8d8442..34a8a2cf55 100644 --- a/Kernel/VM/VMObject.cpp +++ b/Kernel/VM/VMObject.cpp @@ -54,7 +54,7 @@ VMObject::VMObject(PhysicalAddress paddr, size_t size) { MM.register_vmo(*this); for (size_t i = 0; i < size; i += PAGE_SIZE) { - m_physical_pages.append(PhysicalPage::create(paddr.offset(i), false)); + m_physical_pages.append(PhysicalPage::create(paddr.offset(i), false, false)); } ASSERT(m_physical_pages.size() == page_count()); }