patch.h 1.1 KB

123456789101112131415161718192021222324252627
  1. #ifndef _ASM_IA64_PATCH_H
  2. #define _ASM_IA64_PATCH_H
  3. /*
  4. * Copyright (C) 2003 Hewlett-Packard Co
  5. * David Mosberger-Tang <davidm@hpl.hp.com>
  6. *
  7. * There are a number of reasons for patching instructions. Rather than duplicating code
  8. * all over the place, we put the common stuff here. Reasons for patching: in-kernel
  9. * module-loader, virtual-to-physical patch-list, McKinley Errata 9 workaround, and gate
  10. * shared library. Undoubtedly, some of these reasons will disappear and others will
  11. * be added over time.
  12. */
  13. #include <linux/elf.h>
  14. #include <linux/types.h>
  15. extern void ia64_patch (u64 insn_addr, u64 mask, u64 val); /* patch any insn slot */
  16. extern void ia64_patch_imm64 (u64 insn_addr, u64 val); /* patch "movl" w/abs. value*/
  17. extern void ia64_patch_imm60 (u64 insn_addr, u64 val); /* patch "brl" w/ip-rel value */
  18. extern void ia64_patch_mckinley_e9 (unsigned long start, unsigned long end);
  19. extern void ia64_patch_vtop (unsigned long start, unsigned long end);
  20. extern void ia64_patch_phys_stack_reg(unsigned long val);
  21. extern void ia64_patch_rse (unsigned long start, unsigned long end);
  22. extern void ia64_patch_gate (void);
  23. #endif /* _ASM_IA64_PATCH_H */