]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/32s: Initialise KUAP and KUEP in C
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 3 Jun 2021 08:41:41 +0000 (08:41 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 16 Jun 2021 14:09:08 +0000 (00:09 +1000)
commit80eef59c3e74fa06a37d75c6a85db2cd0cf3fe92
tree4797bb3b570922ef556c49f012a72d1aaff8c033
parent0155e44144c3c8c22d77e3d3a646235c2b6a3520
powerpc/32s: Initialise KUAP and KUEP in C

In order to selectively activate KUAP and KUEP in a following patch,
perform KUAP and KUEP initialisation in C.

Unlike PPC64, PPC32 doesn't have an early_setup_secondary(),
so do it in start_secondary().

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/87be72023448dd4e476744ed279b8c04b8d08a1c.1622708530.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/head_book3s_32.S
arch/powerpc/kernel/smp.c
arch/powerpc/mm/book3s32/kuap.c
arch/powerpc/mm/book3s32/kuep.c