X86: Make E820 report nice, round (and correct) numbers.

This commit is contained in:
Gabe Black 2009-04-19 04:14:48 -07:00
parent 5f164ba720
commit 25e223c30f

View file

@ -336,7 +336,7 @@ def makeLinuxX86System(mem_mode, mdesc = None):
# Mark the rest as available
self.e820_table.entries.append(X86E820Entry(
addr = 0x100000,
size = '%dB' % (self.physmem.range.second - 0x100000 - 1),
size = '%dB' % (self.physmem.range.second - 0x100000 + 1),
range_type = 1))
# Command line