|
IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
|
Memory management: physical page allocator, direct map, virtual addresses. More...
Namespaces | |
| namespace | anonymous_namespace{phys.cpp} |
| Allocator state. | |
Classes | |
| class | direct |
| Direct map: physical memory at kernel virtual offset. More... | |
| class | phys |
| Physical page frame allocator. More... | |
Typedefs | |
| using | phys_t = igros_quad_t |
| Physical address (64-bit: physical memory may lie above 4 GB). | |
Enumerations | |
| enum class | virt_t : igros_usize_t |
| Virtual address: translated by paging, never dereferenced through this type. More... | |
Functions | |
| template<class T> | |
| auto | virtOf (const T *const object) noexcept -> virt_t |
| Virtual address of object. | |
| constexpr auto | address (const virt_t virt) noexcept -> igros_usize_t |
| Numeric value of virtual address. | |
| constexpr auto | operator+ (const virt_t virt, const igros_usize_t offset) noexcept -> virt_t |
| Virtual address at offset. | |
Variables | |
| constexpr auto | PAGE_SHIFT {12_usize} |
| Page size bits. | |
| constexpr auto | PAGE_SIZE {1_usize << PAGE_SHIFT} |
| Page size in bytes. | |
| constexpr auto | LOW_MEMORY_LIMIT {0x400000_u64} |
| Physical memory mapped by boot code at kernel virtual offset (see boot.s). | |
| constexpr auto | LOW_MEMORY_RESERVED {0x100000_u64} |
| Physical memory never given out (BIOS, video memory, ROMs). | |
Memory management: physical page allocator, direct map, virtual addresses.
| using igros::mem::phys_t = igros_quad_t |
|
strong |
|
nodiscardconstexprnoexcept |
|
nodiscardconstexprnoexcept |
|
inlinenodiscardnoexcept |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |