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

VM: Remove PhysicalPage::create_eternal().

Now that it is possible to create non-eternal non-freeable
pages, PageDirectory can do just that.
This commit is contained in:
Sergey Bugaev 2019-06-14 17:10:49 +03:00 committed by Andreas Kling
parent 010314ee66
commit d900fe98e2
3 changed files with 1 additions and 9 deletions

View file

@ -2,13 +2,6 @@
#include <Kernel/VM/PhysicalPage.h>
#include <Kernel/kmalloc.h>
Retained<PhysicalPage> PhysicalPage::create_eternal(PhysicalAddress paddr, bool supervisor)
{
void* slot = kmalloc_eternal(sizeof(PhysicalPage));
new (slot) PhysicalPage(paddr, supervisor, false);
return adopt(*(PhysicalPage*)slot);
}
Retained<PhysicalPage> PhysicalPage::create(PhysicalAddress paddr, bool supervisor, bool may_return_to_freelist)
{
void* slot = kmalloc(sizeof(PhysicalPage));