Remove access check from ISR function (#1127)

pull/1129/head
Rahul Kar 5 months ago committed by GitHub
parent 18a168bcd2
commit 0b904a553a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -3838,27 +3838,16 @@
BaseType_t xReturn = pdFALSE; BaseType_t xReturn = pdFALSE;
TimerHandle_t xInternalTimerHandle = NULL; TimerHandle_t xInternalTimerHandle = NULL;
int32_t lIndex; int32_t lIndex;
BaseType_t xIsHigherPriorityTaskWokenWriteable = pdFALSE;
if( pxHigherPriorityTaskWoken != NULL ) lIndex = ( int32_t ) xTimer;
{
xIsHigherPriorityTaskWokenWriteable = xPortIsAuthorizedToAccessBuffer( pxHigherPriorityTaskWoken,
sizeof( BaseType_t ),
tskMPU_WRITE_PERMISSION );
}
if( ( pxHigherPriorityTaskWoken == NULL ) || ( xIsHigherPriorityTaskWokenWriteable == pdTRUE ) ) if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE )
{ {
lIndex = ( int32_t ) xTimer; xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) );
if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) if( xInternalTimerHandle != NULL )
{ {
xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); xReturn = xTimerGenericCommandFromISR( xInternalTimerHandle, xCommandID, xOptionalValue, pxHigherPriorityTaskWoken, xTicksToWait );
if( xInternalTimerHandle != NULL )
{
xReturn = xTimerGenericCommandFromISR( xInternalTimerHandle, xCommandID, xOptionalValue, pxHigherPriorityTaskWoken, xTicksToWait );
}
} }
} }

Loading…
Cancel
Save