(heap_start: usize, heap_size: usize)
| 6 | static ALLOCATOR: LockedHeap = LockedHeap::empty(); |
| 7 | |
| 8 | pub fn init(heap_start: usize, heap_size: usize) { |
| 9 | unsafe {ALLOCATOR.lock().init(heap_start as *mut u8, heap_size);} |
| 10 | } |
| 11 | |
| 12 | // Allocator error handler |
| 13 | #[alloc_error_handler] |