xref: /linux/arch/arm/include/asm/patch.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2fca08f32SWang Nan #ifndef _ARM_KERNEL_PATCH_H
3fca08f32SWang Nan #define _ARM_KERNEL_PATCH_H
4fca08f32SWang Nan 
5fca08f32SWang Nan void patch_text(void *addr, unsigned int insn);
6fca08f32SWang Nan void __patch_text_real(void *addr, unsigned int insn, bool remap);
7fca08f32SWang Nan 
__patch_text(void * addr,unsigned int insn)8fca08f32SWang Nan static inline void __patch_text(void *addr, unsigned int insn)
9fca08f32SWang Nan {
10fca08f32SWang Nan 	__patch_text_real(addr, insn, true);
11fca08f32SWang Nan }
12fca08f32SWang Nan 
__patch_text_early(void * addr,unsigned int insn)13fca08f32SWang Nan static inline void __patch_text_early(void *addr, unsigned int insn)
14fca08f32SWang Nan {
15fca08f32SWang Nan 	__patch_text_real(addr, insn, false);
16fca08f32SWang Nan }
17fca08f32SWang Nan 
18fca08f32SWang Nan #endif
19