powerpc/ftrace: Add support for livepatch to PPC32
PPC64 needs some special logic to properly set up the TOC. See commit 85baa095 ("powerpc/livepatch: Add live patching support on ppc64le") for details. PPC32 doesn't have TOC so it doesn't need that logic, so adding LIVEPATCH support is straight forward. Add CONFIG_LIVEPATCH_64 and move livepatch stack logic into that item. Livepatch sample modules all work. Signed-off-by:Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/63cb094125b6a6038c65eeac2abaabbabe63addd.1640017960.git.christophe.leroy@csgroup.eu
Showing
- arch/powerpc/Kconfig 5 additions, 1 deletionarch/powerpc/Kconfig
- arch/powerpc/include/asm/livepatch.h 5 additions, 3 deletionsarch/powerpc/include/asm/livepatch.h
- arch/powerpc/include/asm/thread_info.h 1 addition, 1 deletionarch/powerpc/include/asm/thread_info.h
- arch/powerpc/kernel/asm-offsets.c 1 addition, 1 deletionarch/powerpc/kernel/asm-offsets.c
Please register or sign in to comment