]> 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 0a77949636e84888edf534ab9f13e10d9a50bed8..766fbb451d1959cf1bd43449c00c4e18fd1ef41a 100644 (file)
@@ -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