]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kprobes: Fix jprobes on ABI v2 (LE)
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 23 Jun 2014 03:23:31 +0000 (13:23 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 24 Jun 2014 04:05:55 +0000 (14:05 +1000)
commitdf8e691c17e44ca7238772041d6eca26d734dcfb
tree9e45a38b533e231b858ee84f21a8ac4c49001edd
parentfa918e20ef1e2593d9141b4536ae254605841222
powerpc/kprobes: Fix jprobes on ABI v2 (LE)

In commit dd7f0008 "Build little endian ppc64 kernel with ABIv2", we
missed some updates required in the kprobes code to make jprobes work
when the kernel is built with ABI v2.

Firstly update arch_deref_entry_point() to do the right thing. Now that
we have added ppc_global_function_entry() we can just always use that, it
will do the right thing for 32 & 64 bit and ABI v1 & v2.

Secondly we need to update the code that sets up the register state before
calling the jprobe handler. On ABI v1 we setup r2 to hold the TOC, on ABI
v2 we need to populate r12 with the function entry point address.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/kprobes.c