Physical memory map describing usable and reserved regions of physical memory. More...
#include <core.h>
Go to the source code of this file.
Data Structures | |
struct | pmapregion_t |
A memregion represents and describes a contiguous region of physical memory. More... | |
struct | pmap_t |
A memory map describing available and reserved regions of physical memory. More... | |
Enumerations |
Functions | |
void | pmap_init () |
Initialize the physical memory map using data installed by the BIOS during boot loading. More... | |
void | pmap_add (uint64_t addr, uint64_t size, enum pmemtype type) |
Add a region of memory to the physical memory map. More... | |
const pmap_t * | pmap () |
Return a pointer to the current physical memory map. More... | |
Physical memory map describing usable and reserved regions of physical memory.
Most of the map is derived from data provided by the system BIOS at boot time.
Definition in file pmap.h.
struct pmapregion |
struct pmap |
enum pmemtype |
The types of physical memory.
void pmap_init | ( | ) |
void pmap_add | ( | uint64_t | addr, |
uint64_t | size, | ||
enum pmemtype | type | ||
) |
Add a region of memory to the physical memory map.
[in] | addr | The starting address of the region. |
[in] | size | The size of the region. |
[in] | type | The type of memory to add. |
Definition at line 322 of file pmap.c.
Referenced by acpi_init(), map_table(), and reserve_region().
const pmap_t* pmap | ( | ) |
Return a pointer to the current physical memory map.
Definition at line 316 of file pmap.c.
Referenced by kmem_init(), and page_init().