improve swtch comment
This commit is contained in:
		
							parent
							
								
									4638cabf8c
								
							
						
					
					
						commit
						1ab23170a1
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		
							
								
								
									
										5
									
								
								swtch.S
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								swtch.S
									
										
									
									
									
								
							|  | @ -2,8 +2,9 @@ | ||||||
| # | # | ||||||
| #   void swtch(struct context **old, struct context *new);
 | #   void swtch(struct context **old, struct context *new);
 | ||||||
| #  | #  | ||||||
| # Save current register context in old | # Save the current registers on the stack, creating | ||||||
| # and then load register context from new. | # a struct context, and save its address in *old. | ||||||
|  | # Switch stacks to new and pop previously-saved registers. | ||||||
| 
 | 
 | ||||||
| .globl swtch
 | .globl swtch
 | ||||||
| swtch: | swtch: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Robert Morris
						Robert Morris