add note
This commit is contained in:
		
							parent
							
								
									2715cd3592
								
							
						
					
					
						commit
						8139713c46
					
				
					 2 changed files with 9 additions and 3 deletions
				
			
		
							
								
								
									
										11
									
								
								BUGS
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								BUGS
									
										
									
									
									
								
							|  | @ -11,9 +11,8 @@ proc.c: | ||||||
| 
 | 
 | ||||||
| 	factor out switching and scheduling code from process code | 	factor out switching and scheduling code from process code | ||||||
| 
 | 
 | ||||||
| trap.c | kalloc.c | ||||||
| 	if spin locks are ever held without cli, | 	more cleanups | ||||||
| 	trap should call yield() only if nlock == 0 |  | ||||||
| 
 | 
 | ||||||
| ide.c: synchronous disk write -> polling disk write.  search for | ide.c: synchronous disk write -> polling disk write.  search for | ||||||
|        (a)synchronous; xv6 doesn't have asynchronous writes. |        (a)synchronous; xv6 doesn't have asynchronous writes. | ||||||
|  | @ -32,3 +31,9 @@ sysfile.c: | ||||||
| general: | general: | ||||||
| 	sizeof parens? | 	sizeof parens? | ||||||
| 
 | 
 | ||||||
|  | usertests.c: | ||||||
|  | 	check for rm of . or .. | ||||||
|  | 
 | ||||||
|  | L=$HOME/mit/l | ||||||
|  | (for i in *.c; do xoc -x xgnu -x ./nodecleq.zeta --typesonly $i; done) 2>&1 | grep warning | ||||||
|  | 
 | ||||||
|  |  | ||||||
							
								
								
									
										1
									
								
								trap.c
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								trap.c
									
										
									
									
									
								
							|  | @ -57,6 +57,7 @@ trap(struct trapframe *tf) | ||||||
|         proc_exit(); |         proc_exit(); | ||||||
| 
 | 
 | ||||||
|       // Force process to give up CPU and let others run.
 |       // Force process to give up CPU and let others run.
 | ||||||
|  |       // If locks were held with interrupts on, would need to check nlock.
 | ||||||
|       if(cp->state == RUNNING) |       if(cp->state == RUNNING) | ||||||
|         yield(); |         yield(); | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 rsc
						rsc