aboutsummaryrefslogtreecommitdiffstats
path: root/arch/csky/abiv2/mcount.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/csky/abiv2/mcount.S')
-rw-r--r--arch/csky/abiv2/mcount.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/csky/abiv2/mcount.S b/arch/csky/abiv2/mcount.S
index 911512bf480f..d745e10c10b0 100644
--- a/arch/csky/abiv2/mcount.S
+++ b/arch/csky/abiv2/mcount.S
@@ -55,7 +55,9 @@
.macro mcount_exit_regs
RESTORE_REGS_FTRACE
- ldw t1, (sp, 0)
+ subi sp, 152
+ ldw t1, (sp, 4)
+ addi sp, 152
ldw r8, (sp, 4)
ldw lr, (sp, 8)
addi sp, 12