powerpc/fsl_booke/32: introduce reloc_kernel_entry() helper
authorJason Yan <yanaijie@huawei.com>
Fri, 20 Sep 2019 09:45:39 +0000 (17:45 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Nov 2019 08:27:37 +0000 (19:27 +1100)
commitc061b38a3e48663c29611e3b60afffe624d7c830
tree3ee9833247d61bebf813955f9d8aaa0a732d730f
parentaa1d2090e69311c65f69c0fa2311d1d0f01c55f8
powerpc/fsl_booke/32: introduce reloc_kernel_entry() helper

Add a new helper reloc_kernel_entry() to jump back to the start of the
new kernel. After we put the new kernel in a randomized place we can use
this new helper to enter the kernel and begin to relocate again.

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/kernel/head_fsl_booke.S
arch/powerpc/mm/mmu_decl.h