mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 10:32:52 +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 */
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef MEMSIZES_H
|
||||
#define MEMSIZES_H
|
||||
|
||||
#warning "This header is no longer functional; use memmap.h instead"
|
||||
|
||||
/*
|
||||
* These structures seem to be very i386 (and, in fact, PCBIOS)
|
||||
* specific, so I've moved them out of etherboot.h.
|
||||
|
||||
Reference in New Issue
Block a user