diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2018-06-28 02:00:32 +0300 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2018-07-09 21:25:45 +0300 |
commit | ca1147fc2487335e9d1d7a931996eae176863a4c (patch) | |
tree | 4c818fe3764c14e24f35db5fb1f321a0d3637c9c /arch/arc/include | |
parent | 64234961c145606b36eaa82c47b11be842b21049 (diff) | |
download | linux-ca1147fc2487335e9d1d7a931996eae176863a4c.tar.xz |
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: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include')
-rw-r--r-- | arch/arc/include/asm/entry-compact.h | 6 | ||||
-rw-r--r-- | arch/arc/include/asm/entry.h | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/arch/arc/include/asm/entry-compact.h b/arch/arc/include/asm/entry-compact.h index ec36d5b6d435..29f3988c9424 100644 --- a/arch/arc/include/asm/entry-compact.h +++ b/arch/arc/include/asm/entry-compact.h @@ -234,6 +234,9 @@ POP gp RESTORE_R12_TO_R0 +#ifdef CONFIG_ARC_CURR_IN_REG + ld r25, [sp, 12] +#endif ld sp, [sp] /* restore original sp */ /* orig_r0, ECR, user_r25 skipped automatically */ .endm @@ -315,6 +318,9 @@ POP gp RESTORE_R12_TO_R0 +#ifdef CONFIG_ARC_CURR_IN_REG + ld r25, [sp, 12] +#endif ld sp, [sp] /* restore original sp */ /* orig_r0, ECR, user_r25 skipped automatically */ .endm diff --git a/arch/arc/include/asm/entry.h b/arch/arc/include/asm/entry.h index 51597f344a62..302b0db8ea2b 100644 --- a/arch/arc/include/asm/entry.h +++ b/arch/arc/include/asm/entry.h @@ -86,9 +86,6 @@ POP r1 POP r0 -#ifdef CONFIG_ARC_CURR_IN_REG - ld r25, [sp, 12] -#endif .endm /*-------------------------------------------------------------- |