mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Remove access check from ISR function
This commit is contained in:
parent
18a168bcd2
commit
cbb09b57b5
|
@ -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;
|
||||||
|
|
||||||
|
if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE )
|
||||||
{
|
{
|
||||||
xIsHigherPriorityTaskWokenWriteable = xPortIsAuthorizedToAccessBuffer( pxHigherPriorityTaskWoken,
|
xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) );
|
||||||
sizeof( BaseType_t ),
|
|
||||||
tskMPU_WRITE_PERMISSION );
|
|
||||||
}
|
|
||||||
|
|
||||||
if( ( pxHigherPriorityTaskWoken == NULL ) || ( xIsHigherPriorityTaskWokenWriteable == pdTRUE ) )
|
if( xInternalTimerHandle != NULL )
|
||||||
{
|
|
||||||
lIndex = ( int32_t ) xTimer;
|
|
||||||
|
|
||||||
if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE )
|
|
||||||
{
|
{
|
||||||
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…
Reference in a new issue