]> git.sur5r.net Git - freertos/blobdiff - Source/portable/GCC/STR75x/port.c
Modify the stack set up when ARM7/9 tasks are created to ensure the assert() calls...
[freertos] / Source / portable / GCC / STR75x / port.c
index 964d96582b549027187e05e7cfe2079ee683213b..766fbb451d1959cf1bd43449c00c4e18fd1ef41a 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.0.0 - Copyright (C) 2011 Real Time Engineers Ltd.\r
+    FreeRTOS V7.0.1 - Copyright (C) 2011 Real Time Engineers Ltd.\r
        \r
 \r
     ***************************************************************************\r
@@ -95,6 +95,10 @@ portSTACK_TYPE *pxOriginalTOS;
 \r
        pxOriginalTOS = pxTopOfStack;\r
 \r
+       /* To ensure asserts in tasks.c don't fail, although in this case the assert\r
+       is not really required. */\r
+       pxTopOfStack--;\r
+\r
        /* Setup the initial stack of the task.  The stack is set exactly as\r
        expected by the portRESTORE_CONTEXT() macro. */\r
 \r