]> 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)
commit8fdad20990aa21e64815906dbc68afbf284e6c7e
treed426aa12effa6d0afc9525f6000133adf1123a04
parent241905684e8ca3de2f2b86cc7c9e64dab603cc42
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