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:
parent
a8e86841ce
commit
010314ee66
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue