fix mark module unavailable

This commit is contained in:
2026-02-16 14:46:53 +01:00
parent 448aa638a7
commit 4d5d6913d7
4 changed files with 30 additions and 23 deletions

View File

@@ -61,6 +61,11 @@ void PageFrameAllocator::init(){
memory_map_entry = memory_map_entry->getNext();
}
Multiboot::Module* mod = Multiboot::getModule(0);
mark_pageframes((uintptr_t)mod, (uintptr_t)mod+1, false);
mark_pageframes((uintptr_t)mod->getStartAddress(), (uintptr_t)mod->getEndAddress(), false);
//mark other known regions as unavailable
mark_pageframes((uintptr_t)&___KERNEL_START___, (uintptr_t)&___KERNEL_END___, false);