powerpc/fsl_booke/kaslr: dump out kernel offset information on panic
authorJason Yan <yanaijie@huawei.com>
Fri, 20 Sep 2019 09:45:44 +0000 (17:45 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Nov 2019 08:27:51 +0000 (19:27 +1100)
commit921a79b7802078fab3787c7eae561536906cb8f3
treed426aa12effa6d0afc9525f6000133adf1123a04
parent8c2ae87be5a4bb2d3cadff72d3aa5f1e3d5aac2b
powerpc/fsl_booke/kaslr: dump out kernel offset information on panic

When kaslr is enabled, the kernel offset is different for every boot.
This brings some difficult to debug the kernel. Dump out the kernel
offset when panic so that we can easily debug the kernel.

This code is derived from x86/arm64 which has similar functionality.

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Diana Craciun <diana.craciun@nxp.com>
Tested-by: Diana Craciun <diana.craciun@nxp.com>
Signed-off-by: Scott Wood <oss@buserror.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/page.h
arch/powerpc/kernel/setup-common.c