diff options
Diffstat (limited to 'arch/powerpc/include/asm/code-patching.h')
-rw-r--r-- | arch/powerpc/include/asm/code-patching.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/code-patching.h b/arch/powerpc/include/asm/code-patching.h index a6f8c7a5cbb7..97e02f985df8 100644 --- a/arch/powerpc/include/asm/code-patching.h +++ b/arch/powerpc/include/asm/code-patching.h | |||
@@ -34,6 +34,13 @@ int instr_is_branch_to_addr(const unsigned int *instr, unsigned long addr); | |||
34 | unsigned long branch_target(const unsigned int *instr); | 34 | unsigned long branch_target(const unsigned int *instr); |
35 | unsigned int translate_branch(const unsigned int *dest, | 35 | unsigned int translate_branch(const unsigned int *dest, |
36 | const unsigned int *src); | 36 | const unsigned int *src); |
37 | #ifdef CONFIG_PPC_BOOK3E_64 | ||
38 | void __patch_exception(int exc, unsigned long addr); | ||
39 | #define patch_exception(exc, name) do { \ | ||
40 | extern unsigned int name; \ | ||
41 | __patch_exception((exc), (unsigned long)&name); \ | ||
42 | } while (0) | ||
43 | #endif | ||
37 | 44 | ||
38 | static inline unsigned long ppc_function_entry(void *func) | 45 | static inline unsigned long ppc_function_entry(void *func) |
39 | { | 46 | { |