Skip to content
Snippets Groups Projects
Commit ca1147fc authored by Vineet Gupta's avatar Vineet Gupta
Browse files

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: default avatarVineet Gupta <vgupta@synopsys.com>
parent 64234961
No related branches found
No related tags found
No related merge requests found
...@@ -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
/*-------------------------------------------------------------- /*--------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment