MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / init

Function init

euralios_std/src/memory.rs:8–10  ·  view source on GitHub ↗
(heap_start: usize, heap_size: usize)

Source from the content-addressed store, hash-verified

6static ALLOCATOR: LockedHeap = LockedHeap::empty();
7
8pub 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]

Callers 1

_startFunction · 0.70

Calls 1

initMethod · 0.80

Tested by

no test coverage detected