summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/kprobes.c
diff options
context:
space:
mode:
authorMichael Ellerman2017-11-10 10:55:03 +0100
committerMichael Ellerman2017-11-10 10:55:03 +0100
commita54c61f46e25345e99eec06a402f746fe33febc6 (patch)
tree23f59fe8702aaf90802cef6f25e76c15211747e1 /arch/powerpc/kernel/kprobes.c
parentselftests/powerpc: Check FP/VEC on exception in TM (diff)
parentpowerpc/perf: Fix core-imc hotplug callback failure during imc initialization (diff)
downloadkernel-qcow2-linux-a54c61f46e25345e99eec06a402f746fe33febc6.tar.gz
kernel-qcow2-linux-a54c61f46e25345e99eec06a402f746fe33febc6.tar.xz
kernel-qcow2-linux-a54c61f46e25345e99eec06a402f746fe33febc6.zip
Merge branch 'fixes' into next
We have some dependencies & conflicts between patches in fixes and things to go in next, both in the radix TLB flush code and the IMC PMU driver. So merge fixes into next.
Diffstat (limited to 'arch/powerpc/kernel/kprobes.c')
-rw-r--r--arch/powerpc/kernel/kprobes.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/kprobes.c b/arch/powerpc/kernel/kprobes.c
index a14c61855705..a20ce12adab1 100644
--- a/arch/powerpc/kernel/kprobes.c
+++ b/arch/powerpc/kernel/kprobes.c
@@ -605,7 +605,12 @@ NOKPROBE_SYMBOL(kprobe_fault_handler);
unsigned long arch_deref_entry_point(void *entry)
{
- return ppc_global_function_entry(entry);
+#ifdef PPC64_ELF_ABI_v1
+ if (!kernel_text_address((unsigned long)entry))
+ return ppc_global_function_entry(entry);
+ else
+#endif
+ return (unsigned long)entry;
}
NOKPROBE_SYMBOL(arch_deref_entry_point);