mirror of
				https://github.com/FreeRTOS/FreeRTOS-Kernel.git
				synced 2025-11-04 11:09:01 +01:00 
			
		
		
		
	Regression Bug Fix: Fix Incorrect Return of MSVC-MingW portYIELD_FROM_ISR (#1207)
There is a regression issue introduced in
    cfc268814a.
    This PR was intended to update MIT licensed header from v9 to v10.
    But it accidentally changed "portYIELD_FROM_ISR( x )" in MSVC-MingW/portmacro.h.
    It caused "portYIELD_FROM_ISR( x )" does not return correct value to "prvProcessSimulatedInterrupts".
			
			
This commit is contained in:
		
							parent
							
								
									b58005a4da
								
							
						
					
					
						commit
						3ddfffda04
					
				@ -112,7 +112,7 @@ extern volatile BaseType_t xInsideInterrupt;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
/* Simulated interrupts return pdFALSE if no context switch should be performed,
 | 
					/* Simulated interrupts return pdFALSE if no context switch should be performed,
 | 
				
			||||||
 * or a non-zero number if a context switch should be performed. */
 | 
					 * or a non-zero number if a context switch should be performed. */
 | 
				
			||||||
#define portYIELD_FROM_ISR( x )       ( void ) x
 | 
					#define portYIELD_FROM_ISR( x )       return x
 | 
				
			||||||
#define portEND_SWITCHING_ISR( x )    portYIELD_FROM_ISR( ( x ) )
 | 
					#define portEND_SWITCHING_ISR( x )    portYIELD_FROM_ISR( ( x ) )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void vPortCloseRunningThread( void * pvTaskToDelete,
 | 
					void vPortCloseRunningThread( void * pvTaskToDelete,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user