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

Revert "Kernel: Allocate shared memory regions immediately"

This reverts commit fe6b3f99d1.
This commit is contained in:
Tom 2021-01-02 10:16:39 -07:00 committed by Andreas Kling
parent 4bc33ee3ae
commit e3190bd144
3 changed files with 2 additions and 8 deletions

View file

@ -282,12 +282,6 @@ bool Region::map_individual_page_impl(size_t page_index)
if (!page || (!is_readable() && !is_writable())) {
pte->clear();
} else {
if (is_shared()) {
// Shared memory should not be lazily populated!
ASSERT(!page->is_shared_zero_page());
ASSERT(!page->is_lazy_committed_page());
}
pte->set_cache_disabled(!m_cacheable);
pte->set_physical_page_base(page->paddr().get());
pte->set_present(true);