Add the frame information to cpu_switch to allow us to unwind out of it,

for example when dumping threads in the kernel debugger.
This commit is contained in:
Andrew Turner 2013-08-25 11:23:38 +00:00
parent da154710c4
commit 85e8977a2c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254847

View File

@ -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: