|
IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
|
Allocator state. More...
Typedefs | |
| using | word_t = igros_dword_t |
| Bitmap word. | |
Functions | |
| auto | isFree (const igros_usize_t page) noexcept -> bool |
| Check if page is free. | |
| void | setFree (const igros_usize_t page) noexcept |
| Mark page as free. | |
| void | setUsed (const igros_usize_t page) noexcept |
| Mark page as used. | |
| void | markUsedString (const phys_t address) noexcept |
| Mark boot string as used (only first byte if string is not directly mapped). | |
| void | markUsedModules (const multiboot::info_t &info) noexcept |
| Mark modules list, modules and their names as used. | |
Variables | |
| constexpr auto | WORD_BITS {static_cast<igros_usize_t>(std::numeric_limits<word_t>::digits)} |
| Pages per bitmap word. | |
| constexpr auto | PAGES {static_cast<igros_usize_t>(phys::MEMORY_LIMIT >> PAGE_SHIFT)} |
| Number of tracked pages. | |
| constinit std::array< word_t, PAGES/WORD_BITS > | freeMap {} |
| Free pages bitmap (bit set - page is free). | |
| constinit igros_usize_t | freeCount {0_usize} |
| Number of free pages. | |
| constinit igros_usize_t | searchHint {0_usize} |
| No free pages in words below this one. | |
| constinit phys_t | memoryTop {0_u64} |
| End of highest memory marked free. | |
Allocator state.
| using igros::mem::anonymous_namespace{phys.cpp}::word_t = igros_dword_t |
|
nodiscardnoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
constinit |
|
constinit |
|
constexpr |
|
constinit |
|
constexpr |