Skip to content

Commit

Permalink
powerpc/kprobes: Don't save/restore DAR/DSISR to/from pt_regs for opt…
Browse files Browse the repository at this point in the history
…probes

We don't save/restore these across a trap, or with KPROBES_ON_FTRACE.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Naveen N. Rao authored and Michael Ellerman committed Aug 24, 2017
1 parent a9dadc1 commit ec4189c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions arch/powerpc/kernel/optprobes_head.S
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ optprobe_template_entry:
std r5,_CCR(r1)
lbz r5,PACASOFTIRQEN(r13)
std r5,SOFTE(r1)
mfdar r5
std r5,_DAR(r1)
mfdsisr r5
std r5,_DSISR(r1)

/*
* We may get here from a module, so load the kernel TOC in r2.
Expand Down Expand Up @@ -122,10 +118,6 @@ optprobe_template_call_emulate:
mtxer r5
ld r5,_CCR(r1)
mtcr r5
ld r5,_DAR(r1)
mtdar r5
ld r5,_DSISR(r1)
mtdsisr r5
REST_GPR(0,r1)
REST_10GPRS(2,r1)
REST_10GPRS(12,r1)
Expand Down

0 comments on commit ec4189c

Please sign in to comment.