aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/code-patching.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/code-patching.h')
-rw-r--r--include/asm-powerpc/code-patching.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-powerpc/code-patching.h b/include/asm-powerpc/code-patching.h
index 0b91fdf944db..fdb187cbc40d 100644
--- a/include/asm-powerpc/code-patching.h
+++ b/include/asm-powerpc/code-patching.h
@@ -19,7 +19,9 @@
19#define BRANCH_SET_LINK 0x1 19#define BRANCH_SET_LINK 0x1
20#define BRANCH_ABSOLUTE 0x2 20#define BRANCH_ABSOLUTE 0x2
21 21
22extern void create_branch(unsigned long addr, unsigned long target, int flags); 22unsigned int create_branch(const unsigned int *addr,
23extern void create_instruction(unsigned long addr, unsigned int instr); 23 unsigned long target, int flags);
24void patch_branch(unsigned int *addr, unsigned long target, int flags);
25void patch_instruction(unsigned int *addr, unsigned int instr);
24 26
25#endif /* _ASM_POWERPC_CODE_PATCHING_H */ 27#endif /* _ASM_POWERPC_CODE_PATCHING_H */