IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
Loading...
Searching...
No Matches
phys.hpp File Reference

Physical memory allocator. More...

#include <arch/types.hpp>
Include dependency graph for phys.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  igros::mem::phys
 Physical page frame allocator. More...

Namespaces

namespace  igros
 IgrOS kernel: common types and literals.
namespace  igros::multiboot
 Multiboot 1 information passed by the bootloader.
namespace  igros::mem
 Memory management: physical page allocator, direct map, virtual addresses.

Typedefs

using igros::mem::phys_t = igros_quad_t
 Physical address (64-bit: physical memory may lie above 4 GB).

Variables

constexpr auto igros::mem::PAGE_SHIFT {12_usize}
 Page size bits.
constexpr auto igros::mem::PAGE_SIZE {1_usize << PAGE_SHIFT}
 Page size in bytes.
constexpr auto igros::mem::LOW_MEMORY_LIMIT {0x400000_u64}
 Physical memory mapped by boot code at kernel virtual offset (see boot.s).
constexpr auto igros::mem::LOW_MEMORY_RESERVED {0x100000_u64}
 Physical memory never given out (BIOS, video memory, ROMs).

Detailed Description

Physical memory allocator.

Date
03 Nov 2026
Author
Igor Baklykov

Definition in file phys.hpp.