提交 f08df088 编写于 作者: G Grissiom

rm48x50: optimize a BEQ

Use condition flag in the ORR. This could eliminate a BEQ.
上级 19fe6251
...@@ -53,10 +53,8 @@ rt_hw_context_switch ...@@ -53,10 +53,8 @@ rt_hw_context_switch
MRS r4, cpsr MRS r4, cpsr
TST lr, #0x01 TST lr, #0x01
BEQ _ARM_MODE ORRNE r4, r4, #0x20 ; it's thumb code
ORR r4, r4, #0x20 ; it's thumb code
_ARM_MODE
STMFD sp!, {r4} ; push cpsr STMFD sp!, {r4} ; push cpsr
STR sp, [r0] ; store sp in preempted tasks TCB STR sp, [r0] ; store sp in preempted tasks TCB
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册