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

Kernel: Add AnonymousVMObject constructor for a Vector of physical pages

This will be used later on by the AHCI code to create a Region
that spans over scattered DMA pages.
This commit is contained in:
Liav A 2021-02-26 14:32:43 +02:00 committed by Andreas Kling
parent e65fd83e23
commit ecb169b61e
4 changed files with 22 additions and 0 deletions

View file

@ -35,6 +35,11 @@ VMObject::VMObject(const VMObject& other)
MM.register_vmobject(*this);
}
VMObject::VMObject()
{
MM.register_vmobject(*this);
}
VMObject::VMObject(size_t size)
{
m_physical_pages.resize(ceil_div(size, static_cast<size_t>(PAGE_SIZE)));