Skip to content
Snippets Groups Projects
Commit fa57fea2 authored by Patrick Daly's avatar Patrick Daly
Browse files

Revert "lrdpv2: ddrcompare: Adjust virtual address from objdump"

This reverts commit 1247c267
("lrdpv2: ddrcompare: Adjust virtual address from objdump")
The above did not properly consider the case where kaslr is not enabled,
resulting in a crash. Revert it so a proper fix can go in.

Change-Id: Ief1b7f2b58b99c2213499748397c14dbe430a82c
parent e02f5565
No related branches found
No related tags found
No related merge requests found
......@@ -45,8 +45,7 @@ class DDRCompare(RamParser) :
bitcheck = virtual & 0x3
if bitcheck:
virtual = virtual - bitcheck
physical = self.ramdump.virt_to_phys(
virtual + self.ramdump.kaslr_offset)
physical = self.ramdump.virt_to_phys(virtual)
magic = hex(self.ramdump.read_u32(physical, False)).rstrip("L").lstrip("0x").zfill(8)
if (m.group(2) != magic):
......
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