X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=Source%2Fportable%2FGCC%2FSTR75x%2Fport.c;h=766fbb451d1959cf1bd43449c00c4e18fd1ef41a;hb=6f7e62ab8caf796690a8030eba9459b36216227d;hp=0a77949636e84888edf534ab9f13e10d9a50bed8;hpb=a2f9ef937b63d9ffbf33143b66611a97bfcb4c26;p=freertos diff --git a/Source/portable/GCC/STR75x/port.c b/Source/portable/GCC/STR75x/port.c index 0a7794963..766fbb451 100644 --- a/Source/portable/GCC/STR75x/port.c +++ b/Source/portable/GCC/STR75x/port.c @@ -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. */