From 353d54aa831faea9cf6ced00c4ba9776d041b6f9 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Tue, 14 Dec 2004 18:45:05 +0000 Subject: [PATCH] Update the sp after popping the regs. This is a good candidate for the golden pointy hat awards. --- sys/arm/arm/swtch.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm/arm/swtch.S b/sys/arm/arm/swtch.S index 44bfefb497ff..275a486515cb 100644 --- a/sys/arm/arm/swtch.S +++ b/sys/arm/arm/swtch.S @@ -205,7 +205,7 @@ ENTRY(cpu_throw) ldr r6, .Lcurpcb str r7, [r6] - ldmfd sp, {r4-r7, pc} + ldmfd sp!, {r4-r7, pc} ENTRY(cpu_switch) stmfd sp!, {r4-r7, lr}