From f64b7536e7138ba61ecbc9cded1144265902c0c8 Mon Sep 17 00:00:00 2001 From: shaojinchun Date: Tue, 4 Dec 2018 18:07:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3rt=5Fhw=5Fcontext=5Fswitch=5F?= =?UTF-8?q?interrupt=E4=B8=AD=E4=B8=80=E5=A4=84=E7=AC=94=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/qemu-vexpress-a9/cpu/context_gcc.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/qemu-vexpress-a9/cpu/context_gcc.S b/bsp/qemu-vexpress-a9/cpu/context_gcc.S index 2b13690e67..d19a0406a6 100644 --- a/bsp/qemu-vexpress-a9/cpu/context_gcc.S +++ b/bsp/qemu-vexpress-a9/cpu/context_gcc.S @@ -138,7 +138,7 @@ rt_hw_context_switch_interrupt: stmfd sp!, {r2} @ push old task's pc stmfd sp!, {r4-r12,lr}@ push old task's lr,r12-r4 - ldmfd r0, {r4-r7} @ restore r0-r3 of the interrupt thread + ldmfd r1, {r4-r7} @ restore r0-r3 of the interrupt thread stmfd sp!, {r4-r7} @ push old task's r0-r3 stmfd sp!, {r3} @ push old task's cpsr