Expand description
Kernel heap allocator: a fixed-size [linked_list_allocator::LockedHeap] set as
the #[global_allocator]. Does not grow after init.
Authors: MarioS271
Re-exportsยง
use crate::arch::x86_64::mm::vmm::page_type::PageType;๐use crate::lib::addr::VirtAddr;๐use crate::lib::panic::kernel_panic;๐use crate::lib::panic_codes::PanicCode;๐use crate::mm::vmm::traits::VmmPaging;๐use crate::mm::vmm::Vmm;๐use crate::state::kstate::KSTATE;๐use linked_list_allocator::LockedHeap;๐use x86_64::structures::paging::PageTableFlags;๐
Constantsยง
- HEAP_
BASE_ ๐ADDRESS - First virtual address of the heap region (higher-half kernel space).
- HEAP_
SIZE ๐ - Total heap size in bytes (4 MiB).
Staticsยง
Functionsยง
- init
- Map the heap virtual address range to physical frames and initialize the allocator.