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:
parent
e65fd83e23
commit
ecb169b61e
4 changed files with 22 additions and 0 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue