2 * Split from entry_64.S
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
10 #include <linux/magic.h>
11 #include <asm/ppc_asm.h>
12 #include <asm/asm-offsets.h>
13 #include <asm/ftrace.h>
14 #include <asm/ppc-opcode.h>
15 #include <asm/export.h>
17 .pushsection ".tramp.ftrace.text","aw",@progbits;
18 .globl ftrace_tramp_text
23 .pushsection ".tramp.ftrace.init","aw",@progbits;
24 .globl ftrace_tramp_init
31 EXPORT_SYMBOL(_mcount)
37 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
38 _GLOBAL(return_to_handler)
39 /* need to save return values */
49 * We might be called from a module.
50 * Switch to our TOC to run inside the core kernel.
54 bl ftrace_return_to_handler
57 /* return value has real return address */
66 /* Jump back to real return address */
68 #endif /* CONFIG_FUNCTION_GRAPH_TRACER */