Skip to content

Commit d88eaf2

Browse files
author
Knarkzel
committed
1 mb heap
1 parent 7566b0b commit d88eaf2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

os/src/allocator.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ use x86_64::{
66
};
77
use linked_list_allocator::LockedHeap;
88

9+
pub const HEAP_START: usize = 0x_4444_4444_0000;
10+
pub const HEAP_SIZE: usize = 1000 * 1024; // 1 MiB
11+
912
#[global_allocator]
1013
static ALLOCATOR: LockedHeap = LockedHeap::empty();
1114

@@ -38,6 +41,3 @@ pub fn init_heap(
3841

3942
Ok(())
4043
}
41-
42-
pub const HEAP_START: usize = 0x_4444_4444_0000;
43-
pub const HEAP_SIZE: usize = 100 * 1024; // 100 KiB

0 commit comments

Comments
 (0)