Skip to content

Commit f788bb2

Browse files
committed
csky: Fixup duplicated restore sp in RESTORE_REGS_FTRACE
There is no user return for RESTORE_REGS_FTRACE, so it's no need to save sp into ss0 as RESTORE_REGS_ALL. Signed-off-by: Guo Ren <[email protected]> Cc: Arnd Bergmann <[email protected]>
1 parent 8077e66 commit f788bb2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/csky/abiv2/inc/abi/entry.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@
136136

137137
.macro RESTORE_REGS_FTRACE
138138
ldw tls, (sp, 0)
139-
ldw a0, (sp, 16)
140-
mtcr a0, ss0
141139

142140
#ifdef CONFIG_CPU_HAS_HILO
143141
ldw a0, (sp, 140)
@@ -158,7 +156,6 @@
158156
addi sp, 40
159157
ldm r16-r30, (sp)
160158
addi sp, 72
161-
mfcr sp, ss0
162159
.endm
163160

164161
.macro SAVE_SWITCH_STACK

0 commit comments

Comments
 (0)