mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 18:15:07 +00:00
VM: Support non-freeable, non-eternal PhysicalPages.
This commit is contained in:
parent
6bb7c80365
commit
a8e86841ce
2 changed files with 3 additions and 3 deletions
|
@ -9,10 +9,10 @@ Retained<PhysicalPage> PhysicalPage::create_eternal(PhysicalAddress paddr, bool
|
|||
return adopt(*(PhysicalPage*)slot);
|
||||
}
|
||||
|
||||
Retained<PhysicalPage> PhysicalPage::create(PhysicalAddress paddr, bool supervisor)
|
||||
Retained<PhysicalPage> PhysicalPage::create(PhysicalAddress paddr, bool supervisor, bool may_return_to_freelist)
|
||||
{
|
||||
void* slot = kmalloc(sizeof(PhysicalPage));
|
||||
new (slot) PhysicalPage(paddr, supervisor);
|
||||
new (slot) PhysicalPage(paddr, supervisor, may_return_to_freelist);
|
||||
return adopt(*(PhysicalPage*)slot);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue