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

Make PhysicalPage eternally allocated.

This commit is contained in:
Andreas Kling 2018-12-31 20:25:42 +01:00
parent 3e37a1f5c3
commit 9eca2ffd41
2 changed files with 8 additions and 5 deletions

View file

@ -655,6 +655,11 @@ Region::~Region()
MM.unregister_region(*this);
}
PhysicalPage::PhysicalPage(PhysicalAddress paddr)
: m_paddr(paddr)
{
}
void PhysicalPage::return_to_freelist()
{
InterruptDisabler disabler;