56 pmapregion_t region[1];
58 typedef struct pmap pmap_t;
int32_t type
Memory type (see memtype enum)
const pmap_t * pmap()
Return a pointer to the current physical memory map.
void pmap_init()
Initialize the physical memory map using data installed by the BIOS during boot loading.
uint64_t count
Memory regions in the memory map.
pmemtype
The types of physical memory.
Marked as uncacheable, usually for I/O.
Reported usable by the BIOS.
Used for ACPI tables or code.
uint64_t addr
base address
A memory map describing available and reserved regions of physical memory.
uint64_t last_usable
End of last usable region.
Reported (or inferred) to be reserved.
void pmap_add(uint64_t addr, uint64_t size, enum pmemtype type)
Add a region of memory to the physical memory map.
uint64_t size
size of memory region
A memregion represents and describes a contiguous region of physical memory.
uint32_t flags
flags (currently unused)
Used for ACPI non-volatile storage.