;Save the new top of stack into the first member of the TCB.\r
str r0, [r2]\r
\r
- stmdb sp!, {r3}\r
+ stmdb sp!, {r0, r3}\r
ldr.w r0, =ulMaxSyscallInterruptPriorityConst\r
ldr r0, [r0]\r
msr basepri, r0\r
bl vTaskSwitchContext\r
mov r0, #0\r
msr basepri, r0\r
- ldmia sp!, {r3}\r
+ ldmia sp!, {r0, r3}\r
\r
;The first item in pxCurrentTCB is the task top of stack.\r
ldr r1, [r3]\r