From b9b3e521f7d4d6bd9cd189d8d9695fa3f6c5a58d Mon Sep 17 00:00:00 2001 From: Richard Barry 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. --- 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;