mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-16 08:11:31 +00:00
77a65075a6
and creating a memory map that's easier to work with than the E820 map.
24 lines
352 B
C
24 lines
352 B
C
#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 */
|