diff options
| author | weety <[email protected]> | 2013-04-02 20:27:08 +0800 |
|---|---|---|
| committer | weety <[email protected]> | 2013-04-02 20:27:08 +0800 |
| commit | 03aa76155ede774194a68fad8069f243e324e6e4 (patch) | |
| tree | 5628460feb2d87b0f06a40e777bbcf234197eaec /libcpu | |
| parent | fb9ea5eada7fb3d1fbc9bce6d8b5be486130c87e (diff) | |
fixed context thread issue when using armcc compile
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/arm/at91sam926x/context_rvds.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/arm/at91sam926x/context_rvds.S b/libcpu/arm/at91sam926x/context_rvds.S index 8f7bab61ef..86f13dd1ba 100644 --- a/libcpu/arm/at91sam926x/context_rvds.S +++ b/libcpu/arm/at91sam926x/context_rvds.S @@ -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 ;/* |
