mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01:00
Extract out the code patching code from kprobes so that it can be used from the jump label code. Additionally, the separated code: - Uses the IS_ENABLED() macros instead of the #ifdefs for THUMB2 support - Unifies the two separate functions in kprobes, providing one function that uses stop_machine() internally, and one that can be called from stop_machine() directly - Patches the text on all CPUs only on processors requiring software broadcasting of cache operations Acked-by: Jon Medhurst <[email protected]> Tested-by: Jon Medhurst <[email protected]> Signed-off-by: Rabin Vincent <[email protected]> Signed-off-by: Russell King <[email protected]>
8 lines
163 B
C
8 lines
163 B
C
#ifndef _ARM_KERNEL_PATCH_H
|
|
#define _ARM_KERNEL_PATCH_H
|
|
|
|
void patch_text(void *addr, unsigned int insn);
|
|
void __patch_text(void *addr, unsigned int insn);
|
|
|
|
#endif
|