mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -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--;
|
||||
|
||||
/* EABI stack frame. */
|
||||
pxTopOfStack -= 28; /* R31 to R4 inclusive. */
|
||||
pxTopOfStack -= 30; /* Previous backchain and LR, R31 to R4 inclusive. */
|
||||
|
||||
/* Parameters in R3. */
|
||||
*pxTopOfStack = ( portSTACK_TYPE ) pvParameters;
|
||||
|
|
Loading…
Reference in a new issue