Skip to content
Snippets Groups Projects
Commit 1b766558 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: automatically lookup addresses when needed"

parents 2e115a60 8d02f6cf
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. # Copyright (c) 2012-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
...@@ -808,6 +808,10 @@ class RamDump(): ...@@ -808,6 +808,10 @@ class RamDump():
return True return True
def virt_to_phys(self, virt): def virt_to_phys(self, virt):
if isinstance(virt, basestring):
virt = self.addr_lookup(virt)
if virt is None:
return
return self.mmu.virt_to_phys(virt) return self.mmu.virt_to_phys(virt)
def setup_symbol_tables(self): def setup_symbol_tables(self):
......
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