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

Kernel: Teach Region how to remap itself

Now remapping (i.e flushing kernel metadata to the CPU page tables)
is done by simply calling Region::remap().
This commit is contained in:
Andreas Kling 2019-11-03 20:59:54 +01:00
parent 3dce0f23f4
commit 4bf1a72d21
7 changed files with 15 additions and 19 deletions

View file

@ -155,7 +155,7 @@ void SharedBuffer::seal()
for (auto& ref : m_refs) {
if (ref.region) {
ref.region->set_writable(false);
MM.remap_region(*ref.region->page_directory(), *ref.region);
ref.region->remap();
}
}
}