aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/mcount.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/mcount.S')
-rw-r--r--arch/mips/kernel/mcount.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/mips/kernel/mcount.S b/arch/mips/kernel/mcount.S
index 98d469032506..bdfef2c24f16 100644
--- a/arch/mips/kernel/mcount.S
+++ b/arch/mips/kernel/mcount.S
@@ -139,7 +139,15 @@ NESTED(ftrace_graph_caller, PT_SIZE, ra)
139#endif 139#endif
140 PTR_LA a0, PT_R1(sp) /* arg1: &AT -> a0 */ 140 PTR_LA a0, PT_R1(sp) /* arg1: &AT -> a0 */
141 jal prepare_ftrace_return 141 jal prepare_ftrace_return
142#ifdef CONFIG_FRAME_POINTER
142 move a2, fp /* arg3: frame pointer */ 143 move a2, fp /* arg3: frame pointer */
144#else
145#ifdef CONFIG_64BIT
146 PTR_LA a2, PT_SIZE(sp)
147#else
148 PTR_LA a2, (PT_SIZE+8)(sp)
149#endif
150#endif
143 151
144 MCOUNT_RESTORE_REGS 152 MCOUNT_RESTORE_REGS
145 RETURN_BACK 153 RETURN_BACK