1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

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.
This commit is contained in:
Sergey Bugaev 2019-06-14 16:41:36 +03:00 committed by Andreas Kling
parent a8e86841ce
commit 010314ee66

View file

@ -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());
}