Verified new contract for xTaskGetCurrentTaskHandle.

This commit is contained in:
Tobias Reinhard 2022-11-17 12:08:38 -05:00
parent 63a8d73ecc
commit fb01980b63
2 changed files with 5 additions and 5 deletions

View file

@ -895,7 +895,7 @@ static void prvYieldForTask( TCB_t * pxTCB,
static BaseType_t prvSelectHighestPriorityTask( const BaseType_t xCoreID )
//@ requires true;
//@ assert true;
//@ ensures true;
{
UBaseType_t uxCurrentPriority = uxTopReadyPriority;
BaseType_t xTaskScheduled = pdFALSE;
@ -5353,9 +5353,7 @@ static void prvResetNextTaskUnblockTime( void )
uint32_t ulState;
ulState = portDISABLE_INTERRUPTS();
//@ open coreLocalInterruptInv_p();
xReturn = pxCurrentTCBs[ portGET_CORE_ID() ];
//@ close coreLocalInterruptInv_p();
portRESTORE_INTERRUPTS( ulState );
return xReturn;