aboutsummaryrefslogtreecommitdiffstats
path: root/src/arch/i386/firmware
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2007-01-12 03:13:04 +0000
committerMichael Brown <mcb30@etherboot.org>2007-01-12 03:13:04 +0000
commit859da6bd3287917467d64046bca6182c9c866f98 (patch)
tree01998a4b57e217007c8b4d5f0cda809cfb640e50 /src/arch/i386/firmware
parent687c1e3227c86c716f20cb2ee8092f3dc58e391a (diff)
downloadipxe-859da6bd3287917467d64046bca6182c9c866f98.tar.gz
Allow external code to update hidden memory regions.
Diffstat (limited to 'src/arch/i386/firmware')
-rw-r--r--src/arch/i386/firmware/pcbios/hidemem.c27
1 files changed, 2 insertions, 25 deletions
diff --git a/src/arch/i386/firmware/pcbios/hidemem.c b/src/arch/i386/firmware/pcbios/hidemem.c
index 276f9c92..3a57fcba 100644
--- a/src/arch/i386/firmware/pcbios/hidemem.c
+++ b/src/arch/i386/firmware/pcbios/hidemem.c
@@ -17,22 +17,7 @@
#include <realmode.h>
#include <biosint.h>
-
-/**
- * A hidden region of Etherboot
- *
- * This represents a region that will be edited out of the system's
- * memory map.
- *
- * This structure is accessed by assembly code, so must not be
- * changed.
- */
-struct hidden_region {
- /* Physical start address */
- uint32_t start;
- /* Physical end address */
- uint32_t end;
-};
+#include <gpxe/hidemem.h>
/* Linker-defined symbols */
extern char _text[];
@@ -46,14 +31,6 @@ extern struct segoff __text16 ( int15_vector );
#define int15_vector __use_text16 ( int15_vector )
/**
- * Unique IDs for hidden regions
- */
-enum {
- TEXT = 0,
- BASEMEM,
-};
-
-/**
* List of hidden regions
*
* Must be terminated by a zero entry.
@@ -61,9 +38,9 @@ enum {
struct hidden_region __data16_array ( hidden_regions, [] ) = {
[TEXT] = { 0, 0 },
[BASEMEM] = { 0, ( 640 * 1024 ) },
+ [EXTMEM] = { 0, 0 },
{ 0, 0, } /* Terminator */
};
-#define hidden_regions __use_data16 ( hidden_regions )
/**
* Hide Etherboot