Fix context_switch_unlock being optimized out
This commit is contained in:
		
							parent
							
								
									61eb0d1ca8
								
							
						
					
					
						commit
						0540726890
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -105,6 +105,6 @@ impl Context {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/// Unset global lock, set inside of kernel
 | 
					/// Unset global lock, set inside of kernel
 | 
				
			||||||
#[no_mangle]
 | 
					#[no_mangle]
 | 
				
			||||||
extern fn context_switch_unlock(){
 | 
					pub extern fn context_switch_unlock(){
 | 
				
			||||||
    CONTEXT_SWITCH_LOCK.store(false, Ordering::SeqCst);
 | 
					    CONTEXT_SWITCH_LOCK.store(false, Ordering::SeqCst);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue