From: richardbarry Date: Mon, 19 May 2008 19:11:08 +0000 (+0000) Subject: Bug fix - allocate 2 extra words at the bottom of the task stack to account for the... X-Git-Tag: V5.0.2~39 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7538d3fd56173e26b98699861849642e20afe388;p=freertos Bug fix - allocate 2 extra words at the bottom of the task stack to account for the back chain and saved LR. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@358 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/portable/GCC/PPC405_Xilinx/port.c b/Source/portable/GCC/PPC405_Xilinx/port.c index df668849b..b7b2ff505 100644 --- a/Source/portable/GCC/PPC405_Xilinx/port.c +++ b/Source/portable/GCC/PPC405_Xilinx/port.c @@ -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;