fixed at91sam9260 context thread issue, avoid idle thread stack overflow

This commit is contained in:
weety 2013-04-02 20:23:11 +08:00
parent 77591fd6d2
commit 92d4c1939b
1 changed files with 2 additions and 2 deletions

View File

@ -59,9 +59,9 @@ rt_hw_context_switch:
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
/*
* void rt_hw_context_switch_to(rt_uint32 to);