mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 02:32:42 -05:00 
			
		
		
		
	Fixed bit mask compare bug
This commit is contained in:
		
							parent
							
								
									d59bfca4f9
								
							
						
					
					
						commit
						56d94df0a8
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								tasks.c
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								tasks.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -894,7 +894,7 @@ static void prvYieldForTask( TCB_t * pxTCB,
 | 
			
		|||
                    if( pxTCB->xTaskRunState == taskTASK_NOT_RUNNING )
 | 
			
		||||
                    {
 | 
			
		||||
                        #if ( configUSE_CORE_AFFINITY == 1 )
 | 
			
		||||
                            if( ( pxTCB->uxCoreAffinityMask & ( 1 << xCoreID ) ) == 1 )
 | 
			
		||||
                            if( ( pxTCB->uxCoreAffinityMask & ( 1 << xCoreID ) ) != 0 )
 | 
			
		||||
                        #endif
 | 
			
		||||
                        {
 | 
			
		||||
                            /* If the task is not being executed by any core swap it in */
 | 
			
		||||
| 
						 | 
				
			
			@ -911,7 +911,7 @@ static void prvYieldForTask( TCB_t * pxTCB,
 | 
			
		|||
                    {
 | 
			
		||||
                        configASSERT( ( pxTCB->xTaskRunState == xCoreID ) || ( pxTCB->xTaskRunState == taskTASK_YIELDING ) );
 | 
			
		||||
                        #if ( configUSE_CORE_AFFINITY == 1 )
 | 
			
		||||
                            if( ( pxTCB->uxCoreAffinityMask & ( 1 << xCoreID ) ) == 1 )
 | 
			
		||||
                            if( ( pxTCB->uxCoreAffinityMask & ( 1 << xCoreID ) ) != 0 )
 | 
			
		||||
                        #endif
 | 
			
		||||
                        {
 | 
			
		||||
                            /* The task is already running on this core, mark it as scheduled */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue