diff options
| -rw-r--r-- | arch/powerpc/kernel/optprobes_head.S | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/optprobes_head.S b/arch/powerpc/kernel/optprobes_head.S index 53e429b5a29d..4937bef7652f 100644 --- a/arch/powerpc/kernel/optprobes_head.S +++ b/arch/powerpc/kernel/optprobes_head.S | |||
| @@ -65,6 +65,13 @@ optprobe_template_entry: | |||
| 65 | mfdsisr r5 | 65 | mfdsisr r5 |
| 66 | std r5,_DSISR(r1) | 66 | std r5,_DSISR(r1) |
| 67 | 67 | ||
| 68 | /* | ||
| 69 | * We may get here from a module, so load the kernel TOC in r2. | ||
| 70 | * The original TOC gets restored when pt_regs is restored | ||
| 71 | * further below. | ||
| 72 | */ | ||
| 73 | ld r2,PACATOC(r13) | ||
| 74 | |||
| 68 | .global optprobe_template_op_address | 75 | .global optprobe_template_op_address |
| 69 | optprobe_template_op_address: | 76 | optprobe_template_op_address: |
| 70 | /* | 77 | /* |
