mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 02:32:42 -05:00 
			
		
		
		
	fixed additional bit mask test errors
This commit is contained in:
		
							parent
							
								
									56d94df0a8
								
							
						
					
					
						commit
						6369b03bd1
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		
							
								
								
									
										6
									
								
								tasks.c
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								tasks.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -762,7 +762,7 @@ static void prvYieldForTask( TCB_t * pxTCB,
 | 
			
		|||
            if( xTaskPriority <= xLowestPriority )
 | 
			
		||||
            {
 | 
			
		||||
                #if ( configUSE_CORE_AFFINITY == 1 )
 | 
			
		||||
                    if( ( pxTCB->uxCoreAffinityMask & ( 1 << x ) ) == 1 )
 | 
			
		||||
                    if( ( pxTCB->uxCoreAffinityMask & ( 1 << x ) ) != 0 )
 | 
			
		||||
                #endif
 | 
			
		||||
                {
 | 
			
		||||
                    #if ( configUSE_TASK_PREEMPTION_DISABLE == 1 )
 | 
			
		||||
| 
						 | 
				
			
			@ -1608,11 +1608,13 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB )
 | 
			
		|||
                    if( pxCurrentTCBs[ xCoreID ] == NULL )
 | 
			
		||||
                    {
 | 
			
		||||
                        pxNewTCB->xTaskRunState = xCoreID;
 | 
			
		||||
                        /* This section of code pins the idle tasks to cores.
 | 
			
		||||
                        #if ( configUSE_CORE_AFFINITY == 1 )
 | 
			
		||||
                            {
 | 
			
		||||
                                pxNewTCB->uxCoreAffinityMask = ( 1 << xCoreID );
 | 
			
		||||
                            }
 | 
			
		||||
                        #endif
 | 
			
		||||
                        */
 | 
			
		||||
                        pxCurrentTCBs[ xCoreID ] = pxNewTCB;
 | 
			
		||||
                        break;
 | 
			
		||||
                    }
 | 
			
		||||
| 
						 | 
				
			
			@ -2240,7 +2242,7 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB )
 | 
			
		|||
                {
 | 
			
		||||
                    xCoreID = ( BaseType_t ) pxTCB->xTaskRunState;
 | 
			
		||||
 | 
			
		||||
                    if( ( uxCoreAffinityMask & ( 1 << xCoreID ) ) != 1 )
 | 
			
		||||
                    if( ( uxCoreAffinityMask & ( 1 << xCoreID ) ) != 0 )
 | 
			
		||||
                    {
 | 
			
		||||
                        prvYieldCore( xCoreID );
 | 
			
		||||
                    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue