powerpc/fsl_booke/32: introduce create_kaslr_tlb_entry() helper
authorJason Yan <yanaijie@huawei.com>
Fri, 20 Sep 2019 09:45:38 +0000 (17:45 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Nov 2019 08:27:34 +0000 (19:27 +1100)
commitaa1d2090e69311c65f69c0fa2311d1d0f01c55f8
treea6e30a7a715b2f926e7f8f052e59e5054168bb14
parent39f4b7bf7571a9c6529b0bb3de49c9bb0998f194
powerpc/fsl_booke/32: introduce create_kaslr_tlb_entry() helper

Add a new helper create_kaslr_tlb_entry() to create a tlb entry by the
virtual and physical address. This is a preparation to support boot kernel
at a randomized address.

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