portSTACK_TYPE *pxOriginalTOS;\r
\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
* to ARM mode are contained in portISR.c.\r
*----------------------------------------------------------*/\r
\r
-/*\r
- Changes from V2.5.2\r
- \r
- + ulCriticalNesting is now saved as part of the task context, as is \r
- therefore added to the initial task stack during pxPortInitialiseStack.\r
-*/\r
-\r
-\r
/* Standard includes. */\r
#include <stdlib.h>\r
\r
\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
\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
portSTACK_TYPE *pxOriginalTOS;\r
\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
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
\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
\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
\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
\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
\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
Remember where the top of the (simulated) stack is before we place \r
anything on it. */\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
/* First on the stack is the return address - which in this case is the\r
start of the task. The offset is added to make the return address appear\r