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

@@ -22,8 +22,6 @@ use alloc::heap::{Alloc, AllocErr, Layout};
use spin::Mutex;
use linked_list_allocator::Heap;
pub const HEAP_START: usize = 0o_000_001_000_000_0000;
pub const HEAP_SIZE: usize = 100 * 1024; // 100 KiB
static HEAP: Mutex<Option<Heap>> = Mutex::new(None);