X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=Source%2Fportable%2FGCC%2FSTR75x%2Fport.c;h=766fbb451d1959cf1bd43449c00c4e18fd1ef41a;hb=6f7e62ab8caf796690a8030eba9459b36216227d;hp=964d96582b549027187e05e7cfe2079ee683213b;hpb=21e2e51fbceb9043db041dc2d1e9c3b8e9583db2;p=freertos diff --git a/Source/portable/GCC/STR75x/port.c b/Source/portable/GCC/STR75x/port.c index 964d96582..766fbb451 100644 --- a/Source/portable/GCC/STR75x/port.c +++ b/Source/portable/GCC/STR75x/port.c @@ -1,5 +1,5 @@ /* - FreeRTOS V7.0.0 - Copyright (C) 2011 Real Time Engineers Ltd. + FreeRTOS V7.0.1 - Copyright (C) 2011 Real Time Engineers Ltd. *************************************************************************** @@ -95,6 +95,10 @@ portSTACK_TYPE *pxOriginalTOS; pxOriginalTOS = pxTopOfStack; + /* To ensure asserts in tasks.c don't fail, although in this case the assert + is not really required. */ + pxTopOfStack--; + /* Setup the initial stack of the task. The stack is set exactly as expected by the portRESTORE_CONTEXT() macro. */