mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 11:09:01 +01:00 
			
		
		
		
	Remove access check from ISR function (#1127)
This commit is contained in:
		
							parent
							
								
									18a168bcd2
								
							
						
					
					
						commit
						0b904a553a
					
				@ -3838,27 +3838,16 @@
 | 
			
		||||
            BaseType_t xReturn = pdFALSE;
 | 
			
		||||
            TimerHandle_t xInternalTimerHandle = NULL;
 | 
			
		||||
            int32_t lIndex;
 | 
			
		||||
            BaseType_t xIsHigherPriorityTaskWokenWriteable = pdFALSE;
 | 
			
		||||
 | 
			
		||||
            if( pxHigherPriorityTaskWoken != NULL )
 | 
			
		||||
            lIndex = ( int32_t ) xTimer;
 | 
			
		||||
 | 
			
		||||
            if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE )
 | 
			
		||||
            {
 | 
			
		||||
                xIsHigherPriorityTaskWokenWriteable = xPortIsAuthorizedToAccessBuffer( pxHigherPriorityTaskWoken,
 | 
			
		||||
                                                                                       sizeof( BaseType_t ),
 | 
			
		||||
                                                                                       tskMPU_WRITE_PERMISSION );
 | 
			
		||||
            }
 | 
			
		||||
                xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) );
 | 
			
		||||
 | 
			
		||||
            if( ( pxHigherPriorityTaskWoken == NULL ) || ( xIsHigherPriorityTaskWokenWriteable == pdTRUE ) )
 | 
			
		||||
            {
 | 
			
		||||
                lIndex = ( int32_t ) xTimer;
 | 
			
		||||
 | 
			
		||||
                if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE )
 | 
			
		||||
                if( xInternalTimerHandle != NULL )
 | 
			
		||||
                {
 | 
			
		||||
                    xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) );
 | 
			
		||||
 | 
			
		||||
                    if( xInternalTimerHandle != NULL )
 | 
			
		||||
                    {
 | 
			
		||||
                        xReturn = xTimerGenericCommandFromISR( xInternalTimerHandle, xCommandID, xOptionalValue, pxHigherPriorityTaskWoken, xTicksToWait );
 | 
			
		||||
                    }
 | 
			
		||||
                    xReturn = xTimerGenericCommandFromISR( xInternalTimerHandle, xCommandID, xOptionalValue, pxHigherPriorityTaskWoken, xTicksToWait );
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user