#ifndef _ASM_IA64_PATCH_H#define _ASM_IA64_PATCH_H/* * Copyright (C) 2003 Hewlett-Packard Co * David Mosberger-Tang <davidm@hpl.hp.com> * * There are a number of reasons for patching instructions. Rather than duplicating code * all over the place, we put the common stuff here. Reasons for patching: in-kernel * module-loader, virtual-to-physical patch-list, McKinley Errata 9 workaround, and gate * shared library. Undoubtedly, some of these reasons will disappear and others will * be added over time. */#include <linux/elf.h>#include <linux/types.h>externvoidia64_patch(u64insn_addr,u64mask,u64val);/* patch any insn slot */externvoidia64_patch_imm64(u64insn_addr,u64val);/* patch "movl" w/abs. value*/externvoidia64_patch_imm60(u64insn_addr,u64val);/* patch "brl" w/ip-rel value */externvoidia64_patch_mckinley_e9(unsignedlongstart,unsignedlongend);externvoidia64_patch_vtop(unsignedlongstart,unsignedlongend);