Added adaptation of Aalok's and Nathan's single-core proof for uxListRemove

This commit is contained in:
Tobias Reinhard 2022-12-01 11:47:52 -05:00
parent 6f782b494a
commit cd3fa4e577
4 changed files with 484 additions and 7 deletions

View file

@ -31,13 +31,14 @@
//@ #include <bitops.gh>
//@ #include "list.gh"
//@ #include <listex.gh>
/* The following includes will be visible to VeriFast in the preprocessed
* code. VeriFast requires includes to occur befor definitions. Hence,
* all includes visible to VeriFast must occur before the preprocessed
* ones.
*/
//VF_include #include "FreeRTOSConfig.h"
//VF_macro #include "FreeRTOSConfig.h"
//VF_macro #define NULL 0
#endif /* VERIFAST */
@ -1217,8 +1218,12 @@ static void prvYieldForTask( TCB_t * pxTCB,
}
}
//@ close xLIST(gReadyList, gSize, gIndex, gEnd, gCells, gVals, gOwners);
if( xTaskScheduled != pdFALSE )
{
//@ close exists(gReadyList);
/* Once a task has been selected to run on this core,
* move it to the end of the ready task list. */
uxListRemove( pxTaskItem );