Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _ARM_KERNEL_PATCH_H
0003 #define _ARM_KERNEL_PATCH_H
0004 
0005 void patch_text(void *addr, unsigned int insn);
0006 void __patch_text_real(void *addr, unsigned int insn, bool remap);
0007 
0008 static inline void __patch_text(void *addr, unsigned int insn)
0009 {
0010     __patch_text_real(addr, insn, true);
0011 }
0012 
0013 static inline void __patch_text_early(void *addr, unsigned int insn)
0014 {
0015     __patch_text_real(addr, insn, false);
0016 }
0017 
0018 #endif