From 320b072c7a599fe1dab2774f030dd0bedef6f047 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 18 Aug 2008 07:14:27 +0100 Subject: [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. --- src/include/gpxe/hidemem.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/include') 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 -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 */ -- cgit v1.2.3-55-g7522