mirror of
https://github.com/ipxe/ipxe
synced 2026-01-02 18:03:36 +03:00
Replaced memsizes.c with smaller memmap.c, taking advantage of __data16,
and creating a memory map that's easier to work with than the E820 map.
This commit is contained in:
23
src/arch/i386/include/memmap.h
Normal file
23
src/arch/i386/include/memmap.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef _MEMMAP_H
|
||||
#define _MEMMAP_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* Memory mapping
|
||||
*
|
||||
*/
|
||||
|
||||
/** A usable memory region */
|
||||
struct memory_region {
|
||||
/** Physical start address */
|
||||
uint64_t start;
|
||||
/** Physical end address */
|
||||
uint64_t end;
|
||||
};
|
||||
|
||||
extern void get_memmap ( struct memory_region *memmap, unsigned int entries );
|
||||
|
||||
#endif /* _MEMMAP_H */
|
||||
Reference in New Issue
Block a user