From 7538d3fd56173e26b98699861849642e20afe388 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Mon, 19 May 2008 19:11:08 +0000 Subject: [PATCH] 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 --- Source/portable/GCC/PPC405_Xilinx/port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5