]> git.sur5r.net Git - freertos/blobdiff - Source/portable/IAR/STR71x/port.c
Modify the stack set up when ARM7/9 tasks are created to ensure the assert() calls...
[freertos] / Source / portable / IAR / STR71x / port.c
index 3ecc9b4db18854dbc98c5446b1ed63f279ecab79..0aebb82669ec435541e7102fdf0280b5ac60c2a9 100644 (file)
@@ -107,6 +107,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