diff options
| author | Michael Brown | 2008-08-18 08:14:27 +0200 |
|---|---|---|
| committer | Michael Brown | 2008-08-18 08:17:41 +0200 |
| commit | 320b072c7a599fe1dab2774f030dd0bedef6f047 (patch) | |
| tree | 92ce3d8140cc092230cc0e7a4079500528556159 /src/include | |
| parent | [pcbios] Prepare for multiple splits of hidden e820 memory regions (diff) | |
| download | ipxe-320b072c7a599fe1dab2774f030dd0bedef6f047.tar.gz ipxe-320b072c7a599fe1dab2774f030dd0bedef6f047.tar.xz ipxe-320b072c7a599fe1dab2774f030dd0bedef6f047.zip | |
[pcbios] Support arbitrary splits of the e820 memory map
Allow for an arbitrary number of splits of the system memory map via
INT 15,e820.
Features of the new map-mangling algorithm include:
Supports random access to e820 map entries.
Requires only sequential access support from the underlying e820
map, even if our caller uses random access.
Empty regions will always be stripped.
Always terminates with %ebx=0, even if the underlying map terminates
with CF=1.
Allows for an arbitrary number of hidden regions, with underlying
regions split into as many subregions as necessary.
Total size increase to achieve this is 193 bytes.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gpxe/hidemem.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/include/gpxe/hidemem.h b/src/include/gpxe/hidemem.h index 547f88815..010fdb582 100644 --- a/src/include/gpxe/hidemem.h +++ b/src/include/gpxe/hidemem.h @@ -8,16 +8,8 @@ * */ -/** - * Unique IDs for hidden regions - */ -enum hidemem_region_id { - TEXT = 0, - BASEMEM, - EXTMEM, -}; +#include <stdint.h> -extern void hide_region ( unsigned int region_id, physaddr_t start, - physaddr_t end ); +extern void hide_umalloc ( physaddr_t start, physaddr_t end ); #endif /* _GPXE_HIDEMEM_H */ |
