patch.h 399 B

123456789101112131415161718
  1. #ifndef _ARM_KERNEL_PATCH_H
  2. #define _ARM_KERNEL_PATCH_H
  3. void patch_text(void *addr, unsigned int insn);
  4. void __patch_text_real(void *addr, unsigned int insn, bool remap);
  5. static inline void __patch_text(void *addr, unsigned int insn)
  6. {
  7. __patch_text_real(addr, insn, true);
  8. }
  9. static inline void __patch_text_early(void *addr, unsigned int insn)
  10. {
  11. __patch_text_real(addr, insn, false);
  12. }
  13. #endif