A rewrite of the bump allocator to conform to the new API (#361)

This commit is contained in:
johanmon
2017-10-24 08:31:08 +02:00
committed by Philipp Oppermann
parent f499b6378c
commit 30fcae9dce
4 changed files with 101 additions and 71 deletions

View File

@@ -63,7 +63,7 @@ pub fn init(boot_info: &BootInformation) -> MemoryController {
let mut active_table = paging::remap_the_kernel(&mut frame_allocator, boot_info);
use self::paging::Page;
use allocator::{HEAP_START, HEAP_SIZE};
use super::{HEAP_START, HEAP_SIZE};
let heap_start_page = Page::containing_address(HEAP_START);
let heap_end_page = Page::containing_address(HEAP_START + HEAP_SIZE - 1);