diff options
author | Anton Blanchard <anton@samba.org> | 2014-04-04 09:06:33 +1100 |
---|---|---|
committer | Anton Blanchard <anton@samba.org> | 2014-04-23 10:05:33 +1000 |
commit | 5e66684fe4c71e4d62d6a5d313057185ac0890cc (patch) | |
tree | 08d556a7203fdcb04eb6ce5373703fb846b147e0 /arch/powerpc/kernel/entry_64.S | |
parent | 169c7cee3131cdf5e2f2d2a6c722c7db0283bcd5 (diff) | |
download | op-kernel-dev-5e66684fe4c71e4d62d6a5d313057185ac0890cc.zip op-kernel-dev-5e66684fe4c71e4d62d6a5d313057185ac0890cc.tar.gz |
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>
Diffstat (limited to 'arch/powerpc/kernel/entry_64.S')
-rw-r--r-- | arch/powerpc/kernel/entry_64.S | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S index cf4f6e6..9fde8a1 100644 --- a/arch/powerpc/kernel/entry_64.S +++ b/arch/powerpc/kernel/entry_64.S @@ -1175,7 +1175,7 @@ _GLOBAL(mcount) _GLOBAL(_mcount) blr -_GLOBAL(ftrace_caller) +_GLOBAL_TOC(ftrace_caller) /* Taken from output of objdump from lib64/glibc */ mflr r3 ld r11, 0(r1) @@ -1199,10 +1199,7 @@ _GLOBAL(ftrace_graph_stub) _GLOBAL(ftrace_stub) blr #else -_GLOBAL(mcount) - blr - -_GLOBAL(_mcount) +_GLOBAL_TOC(_mcount) /* Taken from output of objdump from lib64/glibc */ mflr r3 ld r11, 0(r1) |