changeset d351a723eb02 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=d351a723eb02
description:
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.
diffstat:
configs/common/FSConfig.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r e63744697af3 -r d351a723eb02 configs/common/FSConfig.py
--- a/configs/common/FSConfig.py Thu Mar 28 09:32:01 2013 -0500
+++ b/configs/common/FSConfig.py Thu Mar 28 09:34:15 2013 -0500
@@ -536,7 +536,8 @@
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),
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev