diff options
author | richardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2> | 2008-05-19 19:11:08 +0000 |
---|---|---|
committer | richardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2> | 2008-05-19 19:11:08 +0000 |
commit | c17cfbda68a97c12cabc699d3cdae2ce426dbfe0 (patch) | |
tree | 65520667cbed65965ec69b8b178beeeabd94bf82 /Source | |
parent | 0103d69fbce541791cef18bcd4a59e66ec545a3f (diff) | |
download | freertos-c17cfbda68a97c12cabc699d3cdae2ce426dbfe0.tar.gz freertos-c17cfbda68a97c12cabc699d3cdae2ce426dbfe0.tar.bz2 freertos-c17cfbda68a97c12cabc699d3cdae2ce426dbfe0.tar.xz |
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://freertos.svn.sourceforge.net/svnroot/freertos/trunk@358 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'Source')
-rw-r--r-- | Source/portable/GCC/PPC405_Xilinx/port.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/portable/GCC/PPC405_Xilinx/port.c b/Source/portable/GCC/PPC405_Xilinx/port.c index df668849..b7b2ff50 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;
|