Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+6 -3
+6
arch/arc/include/asm/entry-compact.h
··· 234 234 POP gp 235 235 RESTORE_R12_TO_R0 236 236 237 + #ifdef CONFIG_ARC_CURR_IN_REG 238 + ld r25, [sp, 12] 239 + #endif 237 240 ld sp, [sp] /* restore original sp */ 238 241 /* orig_r0, ECR, user_r25 skipped automatically */ 239 242 .endm ··· 318 315 POP gp 319 316 RESTORE_R12_TO_R0 320 317 318 + #ifdef CONFIG_ARC_CURR_IN_REG 319 + ld r25, [sp, 12] 320 + #endif 321 321 ld sp, [sp] /* restore original sp */ 322 322 /* orig_r0, ECR, user_r25 skipped automatically */ 323 323 .endm
-3
arch/arc/include/asm/entry.h
··· 86 86 POP r1 87 87 POP r0 88 88 89 - #ifdef CONFIG_ARC_CURR_IN_REG 90 - ld r25, [sp, 12] 91 - #endif 92 89 .endm 93 90 94 91 /*--------------------------------------------------------------