From 85e8977a2c1aceaca8f7701f6fd5133edecf5cc4 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Sun, 25 Aug 2013 11:23:38 +0000 Subject: [PATCH] Add the frame information to cpu_switch to allow us to unwind out of it, for example when dumping threads in the kernel debugger. --- sys/arm/arm/swtch.S | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/arm/arm/swtch.S b/sys/arm/arm/swtch.S index 92c420b2ca28..95a37cfe6cf7 100644 --- a/sys/arm/arm/swtch.S +++ b/sys/arm/arm/swtch.S @@ -218,6 +218,11 @@ END(cpu_throw) ENTRY(cpu_switch) stmfd sp!, {r4-r7, lr} sub sp, sp, #4; +#ifdef __ARM_EABI__ + .save {r4-r7, lr} + .pad #4 +#endif + mov r6, r2 /* Save the mutex */ .Lswitch_resume: