mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Bug fix - allocate 2 extra words at the bottom of the task stack to account for the back chain and saved LR.
This commit is contained in:
parent
ecc072e58b
commit
b9b3e521f7
|
@ -121,7 +121,7 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE
|
||||||
pxTopOfStack--;
|
pxTopOfStack--;
|
||||||
|
|
||||||
/* EABI stack frame. */
|
/* EABI stack frame. */
|
||||||
pxTopOfStack -= 28; /* R31 to R4 inclusive. */
|
pxTopOfStack -= 30; /* Previous backchain and LR, R31 to R4 inclusive. */
|
||||||
|
|
||||||
/* Parameters in R3. */
|
/* Parameters in R3. */
|
||||||
*pxTopOfStack = ( portSTACK_TYPE ) pvParameters;
|
*pxTopOfStack = ( portSTACK_TYPE ) pvParameters;
|
||||||
|
|
Loading…
Reference in a new issue