1
0
Fork 0
forked from AbleOS/ableos
ableos_time/kernel/src/allocator.rs
2022-12-07 01:43:26 +01:00

19 lines
323 B
Rust

//! Memory allocator
///
pub const HEAP_START: usize = 0x_4444_4444_0000;
///
pub const HEAP_MULTIPLIER: usize = 100000;
///
pub const HEAP_BASE: usize = 100;
///
pub const HEAP_SIZE: usize = HEAP_BASE * HEAP_MULTIPLIER;
#[alloc_error_handler]
fn alloc_error_handler(layout: alloc::alloc::Layout) -> ! {
loop {}
}