|
| static void | init (const multiboot::info_t &info) noexcept |
| | Initialize from bootloader memory map (reserves kernel and boot data).
|
| static auto | alloc (const phys_t limit=MEMORY_LIMIT) noexcept -> phys_t |
| | Allocate physical page below limit (0 if no memory left).
|
| static void | free (const phys_t page) noexcept |
| | Free physical page.
|
| static auto | freePages () noexcept -> igros_usize_t |
| | Number of free pages.
|
| static auto | top () noexcept -> phys_t |
| | End of highest memory ever marked free (top of usable RAM, clamped to MEMORY_LIMIT).
|
| static void | markFree (const phys_t start, const phys_t end) noexcept |
| | Mark physical memory range [start, end) as free (only whole pages).
|
| static void | markUsed (const phys_t start, const phys_t end) noexcept |
| | Mark physical memory range [start, end) as used (every touched page).
|
Physical page frame allocator.
(bitmap of physical pages: never touches the pages themselves, so free memory doesn't have to be mapped)
Definition at line 52 of file phys.hpp.