Define a struct memory_map with a fixed number of entries, rather than

requiring each caller to decide how many entries it wants to permit.
This commit is contained in:
Michael Brown
2006-05-24 14:41:27 +00:00
parent edcf89e2b0
commit 986f6ffff1
2 changed files with 21 additions and 13 deletions

View File

@@ -18,6 +18,14 @@ struct memory_region {
uint64_t end;
};
extern void get_memmap ( struct memory_region *memmap, unsigned int entries );
/** Maximum number of memory regions we expect to encounter */
#define MAX_MEMORY_REGIONS 8
/** A memory map */
struct memory_map {
struct memory_region regions[MAX_MEMORY_REGIONS];
};
extern void get_memmap ( struct memory_map *memmap );
#endif /* _MEMMAP_H */