From f7868a1bd880a167828c6375d14b4dd13c0c6124 Mon Sep 17 00:00:00 2001 From: Rob Gries Date: Fri, 15 Dec 2017 04:06:57 -0500 Subject: [PATCH] Use proper size for heap init (#376) --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 418f80c9..ef14939f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -52,7 +52,7 @@ pub extern "C" fn rust_main(multiboot_information_address: usize) { let mut memory_controller = memory::init(boot_info); unsafe { - HEAP_ALLOCATOR.lock().init(HEAP_START, HEAP_START + HEAP_SIZE); + HEAP_ALLOCATOR.lock().init(HEAP_START, HEAP_SIZE); } // initialize our IDT