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