diff options
author | Michael Brown <mcb30@etherboot.org> | 2008-09-23 00:58:12 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2008-09-23 00:58:12 +0100 |
commit | 0fd1e54026d9c941fce041157bb00cb42fdef9dd (patch) | |
tree | 80dca6db7680106b5173802e7f5ab8e8e8fa9690 | |
parent | 0e408658b9139c346b684d08134111fbc8159ca0 (diff) | |
download | ipxe-0fd1e54026d9c941fce041157bb00cb42fdef9dd.tar.gz |
[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.c | 6 |
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; } |