fix mark module unavailable
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user