2012-02-18 16:50:51 +00:00
|
|
|
#ifndef _ARM_KERNEL_PATCH_H
|
|
|
|
#define _ARM_KERNEL_PATCH_H
|
|
|
|
|
|
|
|
void patch_text(void *addr, unsigned int insn);
|
2014-04-24 21:28:57 +00:00
|
|
|
void __patch_text_real(void *addr, unsigned int insn, bool remap);
|
|
|
|
|
|
|
|
static inline void __patch_text(void *addr, unsigned int insn)
|
|
|
|
{
|
|
|
|
__patch_text_real(addr, insn, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void __patch_text_early(void *addr, unsigned int insn)
|
|
|
|
{
|
|
|
|
__patch_text_real(addr, insn, false);
|
|
|
|
}
|
2012-02-18 16:50:51 +00:00
|
|
|
|
|
|
|
#endif
|