Relaxed contract of xTaskGetCurrentTaskHandle.

This commit is contained in:
Tobias Reinhard 2022-11-18 09:32:24 -05:00
parent c9e61fce49
commit e629319b9f

View file

@ -5404,11 +5404,9 @@ static void prvResetNextTaskUnblockTime( void )
TaskHandle_t xTaskGetCurrentTaskHandle( void ) TaskHandle_t xTaskGetCurrentTaskHandle( void )
/*@ requires interruptState_p(coreID_f(), ?state) &*& /*@ requires interruptState_p(coreID_f(), ?state) &*&
interruptsDisabled_f(state) == true &*&
pointer(&pxCurrentTCBs[coreID_f], ?taskHandle); pointer(&pxCurrentTCBs[coreID_f], ?taskHandle);
@*/ @*/
/*@ ensures interruptState_p(coreID_f(), state) &*& /*@ ensures interruptState_p(coreID_f(), state) &*&
interruptsDisabled_f(state) == true &*&
pointer(&pxCurrentTCBs[coreID_f], taskHandle) &*& pointer(&pxCurrentTCBs[coreID_f], taskHandle) &*&
result == taskHandle; result == taskHandle;
@*/ @*/