File: patch.h

package info (click to toggle)
linux-2.6 2.6.18.dfsg.1-12
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 287,316 kB
  • ctags: 831,064
  • sloc: ansic: 4,700,345; asm: 205,595; makefile: 13,019; perl: 3,208; python: 2,734; yacc: 2,632; sh: 2,301; cpp: 2,107; lex: 1,510; lisp: 218; awk: 99; pascal: 41
file content (25 lines) | stat: -rw-r--r-- 1,048 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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>

extern void ia64_patch (u64 insn_addr, u64 mask, u64 val);	/* patch any insn slot */
extern void ia64_patch_imm64 (u64 insn_addr, u64 val);		/* patch "movl" w/abs. value*/
extern void ia64_patch_imm60 (u64 insn_addr, u64 val);		/* patch "brl" w/ip-rel value */

extern void ia64_patch_mckinley_e9 (unsigned long start, unsigned long end);
extern void ia64_patch_vtop (unsigned long start, unsigned long end);
extern void ia64_patch_gate (void);

#endif /* _ASM_IA64_PATCH_H */