“841b2ccac3251fdbf7a0bc26724874cdc35df96c”上不存在“drivers/net/wireless/iwlegacy/common.c”
提交 24c78586 编写于 作者: C Christophe Leroy 提交者: Michael Ellerman

powerpc: Avoid an unnecessary test and branch in longjmp()

Doing the test at exit of the function avoids an unnecessary
test and branch inside longjmp().

Semantics are unchanged.
Signed-off-by: NChristophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: NMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 96f391cf
...@@ -85,10 +85,7 @@ _GLOBAL(setjmp) ...@@ -85,10 +85,7 @@ _GLOBAL(setjmp)
blr blr
_GLOBAL(longjmp) _GLOBAL(longjmp)
PPC_LCMPI r4,0 PPC_LL r13,4*SZL(r3)
bne 1f
li r4,1
1: PPC_LL r13,4*SZL(r3)
PPC_LL r14,5*SZL(r3) PPC_LL r14,5*SZL(r3)
PPC_LL r15,6*SZL(r3) PPC_LL r15,6*SZL(r3)
PPC_LL r16,7*SZL(r3) PPC_LL r16,7*SZL(r3)
...@@ -113,7 +110,9 @@ _GLOBAL(longjmp) ...@@ -113,7 +110,9 @@ _GLOBAL(longjmp)
PPC_LL r1,SZL(r3) PPC_LL r1,SZL(r3)
PPC_LL r2,2*SZL(r3) PPC_LL r2,2*SZL(r3)
mtlr r0 mtlr r0
mr r3,r4 mr. r3, r4
bnelr
li r3, 1
blr blr
_GLOBAL(current_stack_pointer) _GLOBAL(current_stack_pointer)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册