|
iPXE
|
System memory map. More...
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| void | memmap_update (struct memmap_region *region, uint64_t start, uint64_t size, unsigned int flags, const char *name) |
| Update memory region descriptor. More... | |
| void | memmap_update_used (struct memmap_region *region) |
| Update memory region descriptor based on all in-use memory regions. More... | |
| size_t | memmap_largest (physaddr_t *start) |
| Find largest usable memory region. More... | |
| PROVIDE_MEMMAP_INLINE (null, memmap_describe) | |
| PROVIDE_MEMMAP_INLINE (null, memmap_sync) | |
System memory map.
Definition in file memmap.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| void memmap_update | ( | struct memmap_region * | region, |
| uint64_t | start, | ||
| uint64_t | size, | ||
| unsigned int | flags, | ||
| const char * | name | ||
| ) |
Update memory region descriptor.
| region | Memory region of interest to be updated |
| start | Start address of known region |
| size | Size of known region |
| flags | Flags for known region |
| name | Name of known region (for debugging) |
Update a memory region descriptor based on a known existent region.
Definition at line 47 of file memmap.c.
References assert(), DBGC, flags, memmap_region::flags, max, memmap_region::max, min, memmap_region::min, memmap_region::name, name, size, and start.
Referenced by fdtmem_describe(), fdtmem_relocate(), fdtmem_update_node(), fdtmem_update_tree(), int15_describe(), meme820(), and memmap_update_used().
| void memmap_update_used | ( | struct memmap_region * | region | ) |
Update memory region descriptor based on all in-use memory regions.
| region | Memory region of interest to be updated |
Definition at line 104 of file memmap.c.
References for_each_table_entry, MEMMAP_FL_USED, memmap_update(), used_region::name, used_region::size, used_region::start, and USED_REGIONS.
Referenced by fdtmem_describe_region().
| size_t memmap_largest | ( | physaddr_t * | start | ) |
Find largest usable memory region.
| start | Start address to fill in |
| len | Length of region |
Definition at line 120 of file memmap.c.
References DBGC, DBGC_MEMMAP, for_each_memmap, memmap_is_usable(), memmap_size(), memmap_region::min, size, and start.
Referenced by uheap_find().
| PROVIDE_MEMMAP_INLINE | ( | null | , |
| memmap_describe | |||
| ) |
| PROVIDE_MEMMAP_INLINE | ( | null | , |
| memmap_sync | |||
| ) |
1.8.15