powerpc: ftrace_caller, _mcount is exported to modules so needs _GLOBAL_TOC()
authorAnton Blanchard <anton@samba.org>
Thu, 3 Apr 2014 22:06:33 +0000 (09:06 +1100)
committerAnton Blanchard <anton@samba.org>
Wed, 23 Apr 2014 00:05:33 +0000 (10:05 +1000)
commit5e66684fe4c71e4d62d6a5d313057185ac0890cc
tree08d556a7203fdcb04eb6ce5373703fb846b147e0
parent169c7cee3131cdf5e2f2d2a6c722c7db0283bcd5
powerpc: ftrace_caller, _mcount is exported to modules so needs _GLOBAL_TOC()

When testing the ftrace function tracer, I realised that ftrace_caller
and mcount are called from modules and they both call into C, therefore
they need the ABIv2 global entry point to establish r2.

Signed-off-by: Anton Blanchard <anton@samba.org>
arch/powerpc/kernel/entry_64.S