]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Add ppc_global_function_entry()
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 17 Jun 2014 06:15:32 +0000 (16:15 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 24 Jun 2014 04:05:32 +0000 (14:05 +1000)
commit110655e9eeb82a149e9b2690114446c17694c384
tree7883aa7e32948134ebca9a68fe955bfa1a3e8941
parentaa8117076c88334fe904ff3fb81452eab2fd795a
powerpc: Add ppc_global_function_entry()

ABIv2 has the concept of a global and local entry point to a function.
In most cases we are interested in the local entry point, and so that is
what ppc_function_entry() returns.

However we have a case in the ftrace code where we want the global entry
point, and there may be other places we need it too. Rather than special
casing each, add an accessor.

For ABIv1 and 32-bit there is only a single entry point, so we return
that. That means it's safe for the caller to use this without also
checking the ABI version.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/code-patching.h