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

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

parents a05274e6 78d49077
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