x86_64 getmemsize: Recover 0x100000 bytes
authorJohn Marino <draco@marino.st>
Sun, 19 Feb 2012 15:26:19 +0000 (16:26 +0100)
committerJohn Marino <draco@marino.st>
Sun, 19 Feb 2012 15:32:14 +0000 (16:32 +0100)
commit0aefa5263fc35dc6554c0e44589f06d939697d11
tree4cfa08d49cb3994a7eaf1c44369f3cf588f69949
parent3f614e7d57ab6cf1147b20a55afcf7781a6f71fb
x86_64 getmemsize: Recover 0x100000 bytes

When binutils 2.20 was brought in, the x86_64 kernel built with it loaded
at 0x200000 instead of 0x100000 as it was previously.  The getmemsize()
function was never updated with the new address so the physical memory
between 0x100000 and 0x200000 has been lost since then.

The hardcoded value has been updated.  In the future, it may be a good
idea to replace with a variable as FreeBSD has done.
sys/platform/pc64/x86_64/machdep.c