]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8bebc69189094791a5e1e76ac391937a656d8001
treed426aa12effa6d0afc9525f6000133adf1123a04
parent40609332f4970fdd32f4ccee5f4b3f5585e68e40
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