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;