diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/code-patching.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-powerpc/code-patching.h b/include/asm-powerpc/code-patching.h index a45a7ff78725..40ad46b1dd9d 100644 --- a/include/asm-powerpc/code-patching.h +++ b/include/asm-powerpc/code-patching.h | |||
@@ -23,9 +23,17 @@ | |||
23 | 23 | ||
24 | unsigned int create_branch(const unsigned int *addr, | 24 | unsigned int create_branch(const unsigned int *addr, |
25 | unsigned long target, int flags); | 25 | unsigned long target, int flags); |
26 | unsigned int create_cond_branch(const unsigned int *addr, | ||
27 | unsigned long target, int flags); | ||
26 | void patch_branch(unsigned int *addr, unsigned long target, int flags); | 28 | void patch_branch(unsigned int *addr, unsigned long target, int flags); |
27 | void patch_instruction(unsigned int *addr, unsigned int instr); | 29 | void patch_instruction(unsigned int *addr, unsigned int instr); |
28 | 30 | ||
31 | int instr_is_relative_branch(unsigned int instr); | ||
32 | int instr_is_branch_to_addr(const unsigned int *instr, unsigned long addr); | ||
33 | unsigned long branch_target(const unsigned int *instr); | ||
34 | unsigned int translate_branch(const unsigned int *dest, | ||
35 | const unsigned int *src); | ||
36 | |||
29 | static inline unsigned long ppc_function_entry(void *func) | 37 | static inline unsigned long ppc_function_entry(void *func) |
30 | { | 38 | { |
31 | #ifdef CONFIG_PPC64 | 39 | #ifdef CONFIG_PPC64 |