Skip to content
Snippets Groups Projects
Commit 78d49077 authored by Laura Abbott's avatar Laura Abbott
Browse files

linux-ramdump-parser-v2: Support older 'map around the hole'

Older targets use a slightly different version of map around the hole
which has different variable names. Account for this in the code.

Change-Id: Ia657b265dc6f34c9fb33f71c1ef62dbf0c0c2114
parent 583fe329
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2013, The Linux Foundation. All rights reserved. # Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 and # it under the terms of the GNU General Public License version 2 and
...@@ -170,7 +170,11 @@ def sparsemem_lowmem_page_address(ramdump, page): ...@@ -170,7 +170,11 @@ def sparsemem_lowmem_page_address(ramdump, page):
def dont_map_hole_lowmem_page_address(ramdump, page): def dont_map_hole_lowmem_page_address(ramdump, page):
phys = page_to_pfn(ramdump, page) << 12 phys = page_to_pfn(ramdump, page) << 12
hole_end_addr = ramdump.addr_lookup('memory_hole_end') hole_end_addr = ramdump.addr_lookup('memory_hole_end')
if hole_end_addr is None:
hole_end_addr = ramdump.addr_lookup('membank1_start')
hole_offset_addr = ramdump.addr_lookup('memory_hole_offset') hole_offset_addr = ramdump.addr_lookup('memory_hole_offset')
if hole_offset_addr is None:
hole_offset_addr = ramdump.addr_lookup('membank0_size')
hole_end = ramdump.read_word(hole_end_addr) hole_end = ramdump.read_word(hole_end_addr)
hole_offset = ramdump.read_word(hole_offset_addr) hole_offset = ramdump.read_word(hole_offset_addr)
if hole_end != 0 and phys >= hole_end: if hole_end != 0 and phys >= hole_end:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment