Commit ab854bfc authored by Vineet Gupta's avatar Vineet Gupta

ARCv2: entry: avoid a branch

Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
parent 23c0cbd0
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment