powerpc: Enable OPTPROBES on PPC32
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 20 Apr 2021 14:02:07 +0000 (14:02 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 21 Apr 2021 12:52:32 +0000 (22:52 +1000)
commiteacf4c0202654adfa94bbb17b5c5c77c0be14af8
tree54b25866a30359f300f0a746d6acc99f663a2b23
parent693557ebf407a85ea400a0b501bb97687d8f4856
powerpc: Enable OPTPROBES on PPC32

For that, create a 32 bits version of patch_imm64_load_insns()
and create a patch_imm_load_insns() which calls
patch_imm32_load_insns() on PPC32 and patch_imm64_load_insns()
on PPC64.

Adapt optprobes_head.S for PPC32. Use PPC_LL/PPC_STL macros instead
of raw ld/std, opt out things linked to paca and use stmw/lmw to
save/restore registers.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/bad58c66859b2a475c0ad516b53164ae3b4853cd.1618927318.git.christophe.leroy@csgroup.eu
arch/powerpc/Kconfig
arch/powerpc/kernel/optprobes.c
arch/powerpc/kernel/optprobes_head.S