Skip to content
Snippets Groups Projects
Commit e52296aa authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "lrdp_V2: Fix for broken reserved_mem.py"

parents f5a23bdc 0347383a
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,14 @@ def page_trace(ramdump, pfn): ...@@ -81,7 +81,14 @@ def page_trace(ramdump, pfn):
phys = pfn << 12 phys = pfn << 12
if phys is None or phys is 0: if phys is None or phys is 0:
return return
if ramdump.is_config_defined('CONFIG_MEMORY_HOTPLUG'):
section_size_bits = int(ramdump.get_config_val(
'CONFIG_HOTPLUG_SIZE_BITS'))
offset = phys >> section_size_bits
else:
offset = phys >> 30 offset = phys >> 30
if ramdump.is_config_defined("CONFIG_SPARSEMEM"): if ramdump.is_config_defined("CONFIG_SPARSEMEM"):
mem_section_0_offset = (mem_section + (offset * mem_section_size)) mem_section_0_offset = (mem_section + (offset * mem_section_size))
page_ext = ramdump.read_word( page_ext = ramdump.read_word(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment