factor out switching and scheduling code from process code
-trap.c
- if spin locks are ever held without cli,
- trap should call yield() only if nlock == 0
+kalloc.c
+ more cleanups
ide.c: synchronous disk write -> polling disk write. search for
(a)synchronous; xv6 doesn't have asynchronous writes.
general:
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
+
proc_exit();
// 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)
yield();
}