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:
Michael Brown
2006-05-24 01:37:46 +00:00
parent 5e80847827
commit 77a65075a6
4 changed files with 239 additions and 235 deletions

View 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 */