summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/firmware/pcbios/hidemem.c
diff options
context:
space:
mode:
authorMichael Brown2008-09-07 22:38:19 +0200
committerMichael Brown2008-09-07 22:38:41 +0200
commit18aa0e79d233862f5cbd39853ac062af59c9d47b (patch)
tree90f8703bf94c94e6bcf094a1a9f7819c6058010c /src/arch/i386/firmware/pcbios/hidemem.c
parent[contrib] Bring bochs/qemu READMEs up to date with latest upstream code (diff)
downloadipxe-18aa0e79d233862f5cbd39853ac062af59c9d47b.tar.gz
ipxe-18aa0e79d233862f5cbd39853ac062af59c9d47b.tar.xz
ipxe-18aa0e79d233862f5cbd39853ac062af59c9d47b.zip
[pcbios] Add extra debugging messages relating to the system memory map
Diffstat (limited to 'src/arch/i386/firmware/pcbios/hidemem.c')
-rw-r--r--src/arch/i386/firmware/pcbios/hidemem.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/arch/i386/firmware/pcbios/hidemem.c b/src/arch/i386/firmware/pcbios/hidemem.c
index fb60fa8b..2e74d3b0 100644
--- a/src/arch/i386/firmware/pcbios/hidemem.c
+++ b/src/arch/i386/firmware/pcbios/hidemem.c
@@ -20,6 +20,7 @@
#include <biosint.h>
#include <basemem.h>
#include <gpxe/init.h>
+#include <gpxe/memmap.h>
#include <gpxe/hidemem.h>
/** Alignment for hidden memory regions */
@@ -121,6 +122,11 @@ void hide_text ( void ) {
* returned by the BIOS.
*/
static void hide_etherboot ( void ) {
+ struct memory_map memmap;
+
+ /* Dump memory map before mangling */
+ DBG ( "Hiding gPXE from system memory map\n" );
+ get_memmap ( &memmap );
/* Initialise the hidden regions */
hide_basemem();
@@ -130,6 +136,10 @@ static void hide_etherboot ( void ) {
/* Hook INT 15 */
hook_bios_interrupt ( 0x15, ( unsigned int ) int15,
&int15_vector );
+
+ /* Dump memory map after mangling */
+ DBG ( "Hidden gPXE from system memory map\n" );
+ get_memmap ( &memmap );
}
/**