summaryrefslogtreecommitdiff
path: root/libcpu
diff options
context:
space:
mode:
Diffstat (limited to 'libcpu')
-rw-r--r--libcpu/arm/at91sam926x/context_rvds.S4
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
;/*