Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit baea6f9b authored by Vineet Gupta's avatar Vineet Gupta Committed by Greg Kroah-Hartman
Browse files

ARCv2: entry: avoid a branch



[ Upstream commit ab854bfcd310b5872fe12eb8d3f2c30fe427f8f7 ]

Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
Stable-dep-of: 92e2921eeafd ("ARC: define ASM_NL and __ALIGN(_STR) outside #ifdef __ASSEMBLY__ guard")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 648d4e39
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -100,12 +100,11 @@
	; 2. Upon entry SP is always saved (for any inspection, unwinding etc),
	;    but on return, restored only if U mode

	lr	r9, [AUX_USER_SP]			; U mode SP

	mov.nz	r9, sp
	add.nz	r9, r9, SZ_PT_REGS - PT_sp - 4		; K mode SP
	bnz	1f

	lr	r9, [AUX_USER_SP]			; U mode SP
1:
	PUSH	r9					; SP (pt_regs->sp)

	PUSH	fp