Skip to content
Snippets Groups Projects
Commit bee8897b authored by Aditya Degwekar's avatar Aditya Degwekar
Browse files

linux-ramdump-parser-v2: Fix calculation of TTBR0

For calculating the non-LPAE ARMv7 TTBR0 offset, use swapper_pg_dir_addr
obtained from an address lookup instead of hardcoded value.

Change-Id: I96a82ee62ca5cbe86b696657af8822e513d5393c
parent eadc1453
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. # Copyright (c) 2013-2015, 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
...@@ -81,7 +81,7 @@ class Armv7MMU(MMU): ...@@ -81,7 +81,7 @@ class Armv7MMU(MMU):
self.secondary_page_tables = [ self.secondary_page_tables = [
[0 for col in range(256)] for row in range(4096)] [0 for col in range(256)] for row in range(4096)]
msm_ttbr0 = self.ramdump.phys_offset + 0x4000 msm_ttbr0 = self.ramdump.phys_offset + self.ramdump.swapper_pg_dir_addr
self.ttbr = msm_ttbr0 self.ttbr = msm_ttbr0
virt_address = 0x0 virt_address = 0x0
gb_i = 0 gb_i = 0
......
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