summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brown2008-09-23 01:58:12 +0200
committerMichael Brown2008-09-23 01:58:12 +0200
commit0fd1e54026d9c941fce041157bb00cb42fdef9dd (patch)
tree80dca6db7680106b5173802e7f5ab8e8e8fa9690
parent[iscsi] Change default initiator name prefix to "iqn.2000-01.org.etherboot:" (diff)
downloadipxe-0fd1e54026d9c941fce041157bb00cb42fdef9dd.tar.gz
ipxe-0fd1e54026d9c941fce041157bb00cb42fdef9dd.tar.xz
ipxe-0fd1e54026d9c941fce041157bb00cb42fdef9dd.zip
[memmap] Allow for 4GB+ systems in debug message
INT 15,e801 is capable of returning a memory range that extends to 4GB, so allow for this in the debug message that shows the data returned by INT 15,e801.
-rw-r--r--src/arch/i386/firmware/pcbios/memmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/i386/firmware/pcbios/memmap.c b/src/arch/i386/firmware/pcbios/memmap.c
index fc0d36ac..f8813162 100644
--- a/src/arch/i386/firmware/pcbios/memmap.c
+++ b/src/arch/i386/firmware/pcbios/memmap.c
@@ -86,9 +86,9 @@ static unsigned int extmemsize_e801 ( void ) {
}
extmem = ( extmem_1m_to_16m_k + ( extmem_16m_plus_64k * 64 ) );
- DBG ( "INT 15,e801 extended memory size %d+64*%d=%d kB [100000,%x)\n",
- extmem_1m_to_16m_k, extmem_16m_plus_64k, extmem,
- ( 0x100000 + ( extmem * 1024 ) ) );
+ DBG ( "INT 15,e801 extended memory size %d+64*%d=%d kB "
+ "[100000,%llx)\n", extmem_1m_to_16m_k, extmem_16m_plus_64k,
+ extmem, ( 0x100000 + ( ( ( uint64_t ) extmem ) * 1024 ) ) );
return extmem;
}