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:
parent
3dce0f23f4
commit
4bf1a72d21
7 changed files with 15 additions and 19 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue