thanks wxdao
This commit is contained in:
		
							parent
							
								
									96e4e2f4d1
								
							
						
					
					
						commit
						6710e5589d
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		
							
								
								
									
										4
									
								
								swtch.S
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								swtch.S
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -11,7 +11,7 @@ swtch:
 | 
			
		|||
  movl 4(%esp), %eax
 | 
			
		||||
  movl 8(%esp), %edx
 | 
			
		||||
 | 
			
		||||
  # Save old callee-save registers
 | 
			
		||||
  # Save old callee-saved registers
 | 
			
		||||
  pushl %ebp
 | 
			
		||||
  pushl %ebx
 | 
			
		||||
  pushl %esi
 | 
			
		||||
| 
						 | 
				
			
			@ -21,7 +21,7 @@ swtch:
 | 
			
		|||
  movl %esp, (%eax)
 | 
			
		||||
  movl %edx, %esp
 | 
			
		||||
 | 
			
		||||
  # Load new callee-save registers
 | 
			
		||||
  # Load new callee-saved registers
 | 
			
		||||
  popl %edi
 | 
			
		||||
  popl %esi
 | 
			
		||||
  popl %ebx
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue