From 03aa76155ede774194a68fad8069f243e324e6e4 Mon Sep 17 00:00:00 2001 From: weety Date: Tue, 2 Apr 2013 20:27:08 +0800 Subject: [PATCH] fixed context thread issue when using armcc compile --- libcpu/arm/at91sam926x/context_rvds.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcpu/arm/at91sam926x/context_rvds.S b/libcpu/arm/at91sam926x/context_rvds.S index 8f7bab61e..86f13dd1b 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 ;/* -- GitLab