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>
19 EXPORT_SYMBOL(_mcount)
25 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
26 _GLOBAL(return_to_handler)
27 /* need to save return values */
37 * We might be called from a module.
38 * Switch to our TOC to run inside the core kernel.
42 bl ftrace_return_to_handler
45 /* return value has real return address */
54 /* Jump back to real return address */
56 #endif /* CONFIG_FUNCTION_GRAPH_TRACER */