]> git.sur5r.net Git - freertos/commitdiff
Bug fix - allocate 2 extra words at the bottom of the task stack to account for the...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 19 May 2008 19:11:08 +0000 (19:11 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 19 May 2008 19:11:08 +0000 (19:11 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@358 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/GCC/PPC405_Xilinx/port.c

index df668849bffcf44468941862a7d4ef8b8d822180..b7b2ff5056af1326089b7e7b558fa6a0ca06b729 100644 (file)
@@ -121,7 +121,7 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE
        pxTopOfStack--;\r
 \r
        /* EABI stack frame. */\r
-       pxTopOfStack -= 28;     /* R31 to R4 inclusive. */\r
+       pxTopOfStack -= 30;     /* Previous backchain and LR, R31 to R4 inclusive. */\r
 \r
        /* Parameters in R3. */\r
        *pxTopOfStack = ( portSTACK_TYPE ) pvParameters;\r