]> Devi Nivas Git - cs3210-lab1.git/commit
Various cleanup:
authorrsc <rsc>
Tue, 21 Aug 2007 19:22:08 +0000 (19:22 +0000)
committerrsc <rsc>
Tue, 21 Aug 2007 19:22:08 +0000 (19:22 +0000)
commitf32f3638f4c34fbf2fc4398878e6304612bb3283
treecabca9bf9ac8b1465b2c59e27e3dc8020c02e2be
parent2d61a40b2059b9a198e7c4ff04c6ced88cb3ce65
Various cleanup:

 - Got rid of dummy proc[0].  Now proc[0] is init.
 - Added initcode.S to exec /init, so that /init is
   just a regular binary.
 - Moved exec out of sysfile to exec.c
 - Moved code dealing with fs guts (like struct inode)
   from sysfile.c to fs.c.  Code dealing with system call
   arguments stays in sysfile.c
 - Refactored directory routines in fs.c; should be simpler.
 - Changed iget to return *unlocked* inode structure.
   This solves the lookup-then-use race in namei
   without introducing deadlocks.
   It also enabled getting rid of the dummy proc[0].
12 files changed:
BUGS
Makefile
defs.h
exec.c [new file with mode: 0644]
fs.c
fsvar.h
initcode.S [new file with mode: 0644]
main.c
proc.c
string.c
syscall.c
sysfile.c