]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: kaslr: print PHYS_OFFSET in dump_kernel_offset()
authorMiles Chen <miles.chen@mediatek.com>
Wed, 12 Dec 2018 10:56:49 +0000 (18:56 +0800)
committerWill Deacon <will.deacon@arm.com>
Fri, 14 Dec 2018 09:33:49 +0000 (09:33 +0000)
commit1a49b019e6faf862e5174d1e1a0e8506c9985366
tree8e899cb33d47d7921e0b0e1d511101d178fbe43d
parent249604f48e8a11f164d0ba1a8cddfa222aa2248c
arm64: kaslr: print PHYS_OFFSET in dump_kernel_offset()

When debug with kaslr, it is sometimes necessary to have PHYS_OFFSET to
perform linear virtual address to physical address translation.
Sometimes we're debugging with only few information such as a kernel log
and a symbol file, print PHYS_OFFSET in dump_kernel_offset() for that case.

Tested by:
echo c > /proc/sysrq-trigger
[   11.996161] SMP: stopping secondary CPUs
[   11.996732] Kernel Offset: 0x2522200000 from 0xffffff8008000000
[   11.996881] PHYS_OFFSET: 0xffffffeb40000000

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Miles Chen <miles.chen@mediatek.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/setup.c