fixed context thread issue when using armcc compile

This commit is contained in:
weety 2013-04-02 20:27:08 +08:00
parent fb9ea5eada
commit 03aa76155e
1 changed files with 2 additions and 2 deletions

View File

@ -60,9 +60,9 @@ rt_hw_context_switch PROC
LDMFD sp!, {r4} ; pop new task spsr
MSR spsr_cxsf, r4
LDMFD sp!, {r4} ; pop new task cpsr
MSR cpsr_cxsf, r4
MSR spsr_cxsf, r4
LDMFD sp!, {r0-r12, lr, pc} ; pop new task r0-r12, lr & pc
LDMFD sp!, {r0-r12, lr, pc}^ ; pop new task r0-r12, lr & pc
ENDP
;/*