mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-07-05 19:38:49 +02: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…
x
Reference in New Issue
Block a user