]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ftrace: Add support for livepatch to PPC32
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 20 Dec 2021 16:38:12 +0000 (16:38 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 7 Feb 2022 10:03:10 +0000 (21:03 +1100)
commit2d8b32cf654b176a1710bd69d76af0e9b645a099
tree5301d30fe547434d5ec5e7eb5559c866722a3fa5
parent93831818700a554522f53a17e6ae485efc7d90ff
powerpc/ftrace: Add support for livepatch to PPC32

PPC64 needs some special logic to properly set up the TOC.
See commit 8580324cad5f ("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
arch/powerpc/Kconfig
arch/powerpc/include/asm/livepatch.h
arch/powerpc/include/asm/thread_info.h
arch/powerpc/kernel/asm-offsets.c