\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