JuliOS/src/memory/heap_alloc/mod.rs
Julien CLEMENT 37432ef902
All checks were successful
continuous-integration/drone/push Build is passing
feat(heap): refacto memory init and add heap simple allocation
Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
2021-12-08 22:47:46 +01:00

9 lines
235 B
Rust

use super::PAGE_SIZE;
use linked_list_allocator::LockedHeap;
pub const HEAP_START: u64 = 0x4444_4444_0000;
pub const HEAP_SIZE: u64 = PAGE_SIZE as u64 * 25;
#[global_allocator]
pub static ALLOCATOR: LockedHeap = LockedHeap::empty();