summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/optprobes_head.S
diff options
context:
space:
mode:
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>2017-06-09 00:46:55 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2017-08-24 16:19:01 +1000
commitec4189c4e8eea0c5e7c9b71cb1502cdcbb32aa17 (patch)
tree78bddbbfa57654f5e61462f6e90f083aff282d55 /arch/powerpc/kernel/optprobes_head.S
parenta9dadc1c512807f955f0799e85830b420da47932 (diff)
downloadlinux-ec4189c4e8eea0c5e7c9b71cb1502cdcbb32aa17.tar.gz
linux-ec4189c4e8eea0c5e7c9b71cb1502cdcbb32aa17.tar.bz2
linux-ec4189c4e8eea0c5e7c9b71cb1502cdcbb32aa17.zip
powerpc/kprobes: Don't save/restore DAR/DSISR to/from pt_regs for optprobes
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>
Diffstat (limited to 'arch/powerpc/kernel/optprobes_head.S')
-rw-r--r--arch/powerpc/kernel/optprobes_head.S8
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/powerpc/kernel/optprobes_head.S b/arch/powerpc/kernel/optprobes_head.S
index 4937bef7652f..52fc864cdec4 100644
--- a/arch/powerpc/kernel/optprobes_head.S
+++ b/arch/powerpc/kernel/optprobes_head.S
@@ -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.
@@ -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)