Use linked_list_allocator crate instead of dummy allocator

This commit is contained in:
Philipp Oppermann
2019-06-26 15:05:57 +02:00
parent 06fc63028a
commit d7484ab48b
4 changed files with 17 additions and 1 deletions

View File

@@ -30,6 +30,10 @@ pub fn init_heap(
unsafe { mapper.map_to(page, frame, flags, frame_allocator)?.flush() };
}
unsafe {
super::ALLOCATOR.lock().init(HEAP_START, HEAP_SIZE);
}
Ok(())
}