Physical frame ownership
This figure documents the historical i386 source baseline. Current native x86-64/AArch64 qualification is recorded separately; this is not an ELF64 or native SMP implementation diagram.
The bitmap tracks ownership; the next-free cursor is only a search hint.
Text equivalent and source references
- PMM determines available frames from Multiboot information, marks usable regions free and reserves occupied kernel, bitmap and heap frames.
- Allocation finds a free bit, marks it used and returns a 4 KiB frame; freeing clears ownership and makes the frame reusable. Exhaustion returns failure.
Allocation flow. Source paths refer to the atlas baseline; the kernel checkout is private.
kernel/core/memory.c · pmm_init, pmm_alloc_frame, pmm_free_frame, heap_initinclude/memory.h · PAGE_SIZE