diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2019-06-14 16:41:36 +0300 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-14 16:14:49 +0200 |
commit | 010314ee66abeb539daf9e382453c14f0f4ca7c3 (patch) | |
tree | 494baa1947b8b54ac6983d46b4cea619c7162b8f /Kernel | |
parent | a8e86841ce45ee3d5df285f52171ebcfde6750d5 (diff) | |
download | serenity-010314ee66abeb539daf9e382453c14f0f4ca7c3.zip |
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.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/VM/VMObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); } |