From 792ef0b3d27ac20be161de7d158ae81d516bc7fd Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 15 Aug 2016 15:20:27 -0600 Subject: [PATCH] Move heap, make it larger --- alloc/bump_allocator/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alloc/bump_allocator/src/lib.rs b/alloc/bump_allocator/src/lib.rs index ad9a408..f0606da 100644 --- a/alloc/bump_allocator/src/lib.rs +++ b/alloc/bump_allocator/src/lib.rs @@ -10,8 +10,8 @@ use spin::Mutex; extern crate spin; -pub const HEAP_START: usize = 0o_000_001_000_000_0000; -pub const HEAP_SIZE: usize = 100 * 1024; // 100 KiB +pub const HEAP_START: usize = 0x1_0000_0000; // Put at end of 4GB +pub const HEAP_SIZE: usize = 16 * 1024 * 1024; // 16 MB static BUMP_ALLOCATOR: Mutex = Mutex::new(BumpAllocator::new(HEAP_START, HEAP_SIZE));