fix the allocator example

This commit is contained in:
Jorge Aparicio
2018-02-26 22:27:52 +01:00
parent 5206ef79d2
commit 23ae289bf4
3 changed files with 4 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ extern "C" {
fn main() {
// Initialize the allocator
let start = unsafe { &mut _sheap as *mut u32 as usize };
let end = unsafe { &mut _sheap as *mut u32 as usize };
let end = unsafe { &mut _eheap as *mut u32 as usize };
unsafe { ALLOCATOR.init(start, end - start) }
// Growable array allocated on the heap