sched -> switch2scheduler? or just switch?
+ 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
main.c, proc.c, trap.c:
use a constant for 3 (USER).
+ide.c: synchronous disk write -> polling disk write. search for
+ (a)synchronous; xv6 doesn't have asynchronous writes.
+
+fs.c: split all name operations off in name.c? (starting with namei but move
+ wdir keep in fs.c)
\ No newline at end of file