diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2013-03-28 09:34:15 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2013-03-28 09:34:15 -0500 |
commit | 433cab9d95480b29d5fa76f02686d16adaf38db2 (patch) | |
tree | a6b9300d19ebfba9f480901930c4736321026f97 | |
parent | 1af9369779466df9b3086150164dcb5de034abc9 (diff) | |
download | gem5-433cab9d95480b29d5fa76f02686d16adaf38db2.tar.xz |
x86: create space in bios memory map
As of now, we mark the top 1MB of memory space as unusable. Part of
it is actually usable and is required to be marked so by some of the
newer versions of linux kernel. This patch marks the top 639KB as usable.
This value was chosen by looking at QEMU's output for bios memory map.
-rw-r--r-- | configs/common/FSConfig.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configs/common/FSConfig.py b/configs/common/FSConfig.py index 99b5c7967..3a7a50839 100644 --- a/configs/common/FSConfig.py +++ b/configs/common/FSConfig.py @@ -536,7 +536,8 @@ def makeLinuxX86System(mem_mode, numCPUs = 1, mdesc = None, Ruby = False): self.e820_table.entries = \ [ # Mark the first megabyte of memory as reserved - X86E820Entry(addr = 0, size = '1MB', range_type = 2), + X86E820Entry(addr = 0, size = '639kB', range_type = 1), + X86E820Entry(addr = 0x9fc00, size = '385kB', range_type = 2), # Mark the rest as available X86E820Entry(addr = 0x100000, size = '%dB' % (phys_mem_size - 0x100000), |