mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-14 15:45:09 -05:00
Included global variables pxCurrentTCBs and pxYieldingPendings in interrupt invariant.
This commit is contained in:
parent
d63a8f83cd
commit
54523ecdce
2 changed files with 7 additions and 2 deletions
4
tasks.c
4
tasks.c
|
|
@ -4136,7 +4136,8 @@ void vTaskSwitchContext( BaseType_t xCoreID )
|
|||
interruptsDisabled_f(state) == true &*&
|
||||
// opened predicate `coreLocalInterruptInv_p()`
|
||||
pointer(&pxCurrentTCBs[coreID_f], ?gCurrentTCB) &*&
|
||||
pubTCB_p(gCurrentTCB, 0);
|
||||
pubTCB_p(gCurrentTCB, 0) &*&
|
||||
integer_(&xYieldPendings[coreID_f], sizeof(BaseType_t), true, _);
|
||||
|
||||
@*/
|
||||
//@ ensures true;
|
||||
|
|
@ -4176,6 +4177,7 @@ void vTaskSwitchContext( BaseType_t xCoreID )
|
|||
configASSERT( pxCurrentTCB->uxCriticalNesting == 0 );
|
||||
#endif /* VERIFAST */
|
||||
|
||||
//@ open taskISRLockInv();
|
||||
if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
|
||||
{
|
||||
/* The scheduler is currently suspended - do not allow a context
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue