]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/mips/kernel/mcount.S
MLK-10058-1 ARM: imx6sx: add one pcie phy regulator in gpc dts
[karo-tx-linux.git] / arch / mips / kernel / mcount.S
index 539b6294b613c84fcff1286d267c4b7a5aba401c..8f89ff4ed524127e3992124b753bfd091cda4b2a 100644 (file)
@@ -123,7 +123,11 @@ NESTED(_mcount, PT_SIZE, ra)
         nop
 #endif
        b       ftrace_stub
+#ifdef CONFIG_32BIT
+        addiu sp, sp, 8
+#else
         nop
+#endif
 
 static_trace:
        MCOUNT_SAVE_REGS
@@ -133,6 +137,9 @@ static_trace:
         move   a1, AT          /* arg2: parent's return address */
 
        MCOUNT_RESTORE_REGS
+#ifdef CONFIG_32BIT
+       addiu sp, sp, 8
+#endif
        .globl ftrace_stub
 ftrace_stub:
        RETURN_BACK
@@ -177,6 +184,11 @@ NESTED(ftrace_graph_caller, PT_SIZE, ra)
        jal     prepare_ftrace_return
         nop
        MCOUNT_RESTORE_REGS
+#ifndef CONFIG_DYNAMIC_FTRACE
+#ifdef CONFIG_32BIT
+       addiu sp, sp, 8
+#endif
+#endif
        RETURN_BACK
        END(ftrace_graph_caller)