Function axalloc::global_init
source · pub fn global_init(start_vaddr: usize, size: usize)
Expand description
Initializes the global allocator with the given memory region.
Note that the memory region bounds are just numbers, and the allocator does not actually access the region. Users should ensure that the region is valid and not being used by others, so that the allocated memory is also valid.
This function should be called only once, and before any allocation.