2022-06-22 18:59:24 +00:00
|
|
|
pub mod aalloc;
|
|
|
|
pub use aalloc::*;
|
2022-04-11 22:23:11 +00:00
|
|
|
|
2021-11-23 11:53:06 +00:00
|
|
|
pub const HEAP_START: usize = 0x_4444_4444_0000;
|
2021-12-24 14:04:07 +00:00
|
|
|
pub const HEAP_MULTIPLIER: usize = 100000;
|
2021-11-23 11:53:06 +00:00
|
|
|
pub const HEAP_BASE: usize = 100;
|
|
|
|
pub const HEAP_SIZE: usize = HEAP_BASE * HEAP_MULTIPLIER;
|
|
|
|
|
2022-06-22 18:59:24 +00:00
|
|
|
/*
|
2021-11-28 20:50:14 +00:00
|
|
|
#[global_allocator]
|
|
|
|
pub static ALLOCATOR: LockedHeap = LockedHeap::empty();
|
2021-11-23 11:53:06 +00:00
|
|
|
|
|
|
|
#[alloc_error_handler]
|
|
|
|
fn alloc_error_handler(layout: alloc::alloc::Layout) -> ! {
|
|
|
|
panic!("allocation error: {:?}", layout)
|
|
|
|
}
|
2022-06-22 18:59:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
*/
|