diff options
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
| -rw-r--r-- | arch/powerpc/lib/code-patching.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/arch/powerpc/lib/code-patching.c b/arch/powerpc/lib/code-patching.c index 89502cbccb1b..506413a2c25e 100644 --- a/arch/powerpc/lib/code-patching.c +++ b/arch/powerpc/lib/code-patching.c | |||
| @@ -204,22 +204,6 @@ int patch_branch(unsigned int *addr, unsigned long target, int flags) | |||
| 204 | return patch_instruction(addr, create_branch(addr, target, flags)); | 204 | return patch_instruction(addr, create_branch(addr, target, flags)); |
| 205 | } | 205 | } |
| 206 | 206 | ||
| 207 | int patch_branch_site(s32 *site, unsigned long target, int flags) | ||
| 208 | { | ||
| 209 | unsigned int *addr; | ||
| 210 | |||
| 211 | addr = (unsigned int *)((unsigned long)site + *site); | ||
| 212 | return patch_instruction(addr, create_branch(addr, target, flags)); | ||
| 213 | } | ||
| 214 | |||
| 215 | int patch_instruction_site(s32 *site, unsigned int instr) | ||
| 216 | { | ||
| 217 | unsigned int *addr; | ||
| 218 | |||
| 219 | addr = (unsigned int *)((unsigned long)site + *site); | ||
| 220 | return patch_instruction(addr, instr); | ||
| 221 | } | ||
| 222 | |||
| 223 | bool is_offset_in_branch_range(long offset) | 207 | bool is_offset_in_branch_range(long offset) |
| 224 | { | 208 | { |
| 225 | /* | 209 | /* |
