mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-25 04:25:13 +08: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user