提交 ca1147fc 编写于 作者: V Vineet Gupta

ARC: [arcompact] entry.S: minor code movement

This is a non functional code changw, which moves r25 restore from macro
into the caller of macro
Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
上级 64234961
...@@ -234,6 +234,9 @@ ...@@ -234,6 +234,9 @@
POP gp POP gp
RESTORE_R12_TO_R0 RESTORE_R12_TO_R0
#ifdef CONFIG_ARC_CURR_IN_REG
ld r25, [sp, 12]
#endif
ld sp, [sp] /* restore original sp */ ld sp, [sp] /* restore original sp */
/* orig_r0, ECR, user_r25 skipped automatically */ /* orig_r0, ECR, user_r25 skipped automatically */
.endm .endm
...@@ -315,6 +318,9 @@ ...@@ -315,6 +318,9 @@
POP gp POP gp
RESTORE_R12_TO_R0 RESTORE_R12_TO_R0
#ifdef CONFIG_ARC_CURR_IN_REG
ld r25, [sp, 12]
#endif
ld sp, [sp] /* restore original sp */ ld sp, [sp] /* restore original sp */
/* orig_r0, ECR, user_r25 skipped automatically */ /* orig_r0, ECR, user_r25 skipped automatically */
.endm .endm
......
...@@ -86,9 +86,6 @@ ...@@ -86,9 +86,6 @@
POP r1 POP r1
POP r0 POP r0
#ifdef CONFIG_ARC_CURR_IN_REG
ld r25, [sp, 12]
#endif
.endm .endm
/*-------------------------------------------------------------- /*--------------------------------------------------------------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册