4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-31 08:20:25 +08:00

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

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
;/*