Skip to main content

Module heap

Module heap 

Source
Expand description

Kernel heap allocator: a fixed-size [linked_list_allocator::LockedHeap] set as the #[global_allocator]. Does not grow after init.

Authors: MarioS271

Staticsยง

ALLOCATOR ๐Ÿ”’
The global allocator instance; empty until init.
HEAP_BASE_ADDRESS ๐Ÿ”’
First virtual address of the heap region (higher-half kernel space).
HEAP_SIZE ๐Ÿ”’
Total heap size in bytes (4 MiB).

Functionsยง

init
Map the heap virtual address range to physical frames and initialize the allocator.