Do not have interrupts enabled during context switch
This commit is contained in:
		
							parent
							
								
									53a5a9188a
								
							
						
					
					
						commit
						997e229f27
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -158,6 +158,7 @@ pub extern fn kmain() { | |||
| 
 | ||||
|     loop { | ||||
|         unsafe { | ||||
|             interrupt::disable(); | ||||
|             context::switch(); | ||||
|             interrupt::enable_and_halt(); | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jeremy Soller
						Jeremy Soller