]> Devi Nivas Git - cs3210-lab1.git/log
cs3210-lab1.git
18 years agoReorder spinlock.c: acquire and release first
rsc [Fri, 24 Aug 2007 20:06:14 +0000 (20:06 +0000)]
Reorder spinlock.c: acquire and release first

18 years agoAdd yield system call, for zombie test program (bad idea?).
rsc [Fri, 24 Aug 2007 20:04:53 +0000 (20:04 +0000)]
Add yield system call, for zombie test program (bad idea?).

18 years agoRemove puts in favor of printf.
rsc [Fri, 24 Aug 2007 20:03:40 +0000 (20:03 +0000)]
Remove puts in favor of printf.
Allow multiple arguments to ls.

18 years agocomment nits
rtm [Fri, 24 Aug 2007 19:52:49 +0000 (19:52 +0000)]
comment nits

18 years agonits
rsc [Fri, 24 Aug 2007 19:46:19 +0000 (19:46 +0000)]
nits

18 years agofinish comments
rsc [Fri, 24 Aug 2007 19:37:24 +0000 (19:37 +0000)]
finish comments

18 years agotweak
rsc [Fri, 24 Aug 2007 19:36:52 +0000 (19:36 +0000)]
tweak

18 years agosimplify ide queuing
rtm [Fri, 24 Aug 2007 19:32:36 +0000 (19:32 +0000)]
simplify ide queuing
nits in comments

18 years agobring bootasm and bootother more in sync
rsc [Fri, 24 Aug 2007 19:25:52 +0000 (19:25 +0000)]
bring bootasm and bootother more in sync

18 years agoRework comments a bit.
rsc [Fri, 24 Aug 2007 18:52:59 +0000 (18:52 +0000)]
Rework comments a bit.

Move initialization of %sp after
protected mode jump and change to %esp.

18 years agoadd missing iput() at end of _namei()
rtm [Fri, 24 Aug 2007 14:56:17 +0000 (14:56 +0000)]
add missing iput() at end of _namei()

18 years agooops, O_CREATE doesn't truncate, so holes can't exist, thus no bug
rtm [Fri, 24 Aug 2007 12:55:15 +0000 (12:55 +0000)]
oops, O_CREATE doesn't truncate, so holes can't exist, thus no bug

18 years agotest concurrent open/unlink of same file (ok)
rtm [Fri, 24 Aug 2007 12:19:13 +0000 (12:19 +0000)]
test concurrent open/unlink of same file (ok)
test files with holes (not ok)

18 years agocomment what +m means; omit needless __
rsc [Fri, 24 Aug 2007 00:34:54 +0000 (00:34 +0000)]
comment what +m means; omit needless __

18 years agoomit needless ampersands
rsc [Fri, 24 Aug 2007 00:02:03 +0000 (00:02 +0000)]
omit needless ampersands

18 years agoalign, sort
rsc [Thu, 23 Aug 2007 23:58:19 +0000 (23:58 +0000)]
align, sort

18 years agoUse parent pointer instead of ppid.
rsc [Thu, 23 Aug 2007 14:40:30 +0000 (14:40 +0000)]
Use parent pointer instead of ppid.

18 years agoavoid hardcoding init as pid 1 proc[0]
rsc [Thu, 23 Aug 2007 14:35:28 +0000 (14:35 +0000)]
avoid hardcoding init as pid 1 proc[0]

18 years agomy mistake found by robert
rsc [Wed, 22 Aug 2007 17:45:52 +0000 (17:45 +0000)]
my mistake found by robert

18 years agoNREQUEST = NBUF
rsc [Wed, 22 Aug 2007 14:38:00 +0000 (14:38 +0000)]
NREQUEST = NBUF

18 years agobetter comment
rsc [Wed, 22 Aug 2007 14:21:05 +0000 (14:21 +0000)]
better comment

18 years agotweaks
rsc [Wed, 22 Aug 2007 06:20:10 +0000 (06:20 +0000)]
tweaks

18 years agoPDF at http://am.lcs.mit.edu/~rsc/xv6.pdf
rsc [Wed, 22 Aug 2007 06:01:32 +0000 (06:01 +0000)]
PDF at http://am.lcs.mit.edu/~rsc/xv6.pdf

Various changes made while offline.

 + bwrite sector argument is redundant; use b->sector.
 + reformatting of files for nicer PDF page breaks
 + distinguish between locked, unlocked inodes in type signatures
 + change FD_FILE to FD_INODE
 + move userinit (nee proc0init) to proc.c
 + move ROOTDEV to param.h
 + always parenthesize sizeof argument

18 years agocleanup
rsc [Wed, 22 Aug 2007 05:57:39 +0000 (05:57 +0000)]
cleanup

18 years agoadd ln
rsc [Wed, 22 Aug 2007 05:54:55 +0000 (05:54 +0000)]
add ln

18 years agocheck unlink of non-empty directory
rsc [Wed, 22 Aug 2007 02:21:22 +0000 (02:21 +0000)]
check unlink of non-empty directory

18 years agoARGMAX -> MAXARGS
rsc [Tue, 21 Aug 2007 20:01:11 +0000 (20:01 +0000)]
ARGMAX -> MAXARGS

18 years agoremove namelen parameter
rsc [Tue, 21 Aug 2007 19:58:55 +0000 (19:58 +0000)]
remove namelen parameter

18 years agoremove dead code
rsc [Tue, 21 Aug 2007 19:22:27 +0000 (19:22 +0000)]
remove dead code

18 years agoVarious cleanup:
rsc [Tue, 21 Aug 2007 19:22:08 +0000 (19:22 +0000)]
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].

18 years agobug in usertests!
rsc [Mon, 20 Aug 2007 21:00:20 +0000 (21:00 +0000)]
bug in usertests!

18 years agocheckpoint - simpler namei interface
rsc [Mon, 20 Aug 2007 19:37:15 +0000 (19:37 +0000)]
checkpoint - simpler namei interface

18 years agono more w
rsc [Mon, 20 Aug 2007 18:55:51 +0000 (18:55 +0000)]
no more w

18 years agoshuffle fs.c in bottom-up order
rsc [Mon, 20 Aug 2007 18:23:52 +0000 (18:23 +0000)]
shuffle fs.c in bottom-up order

19 years agocleanup loop
rsc [Tue, 14 Aug 2007 19:42:14 +0000 (19:42 +0000)]
cleanup loop

19 years agoformatting, cleanup
rsc [Tue, 14 Aug 2007 19:41:56 +0000 (19:41 +0000)]
formatting, cleanup

19 years agoformatting
rsc [Tue, 14 Aug 2007 19:41:38 +0000 (19:41 +0000)]
formatting

19 years agonit
rsc [Tue, 14 Aug 2007 19:41:29 +0000 (19:41 +0000)]
nit

19 years agofixes
rsc [Tue, 14 Aug 2007 19:41:01 +0000 (19:41 +0000)]
fixes

19 years agoformatting; split kbd constants into kbd.h
rsc [Tue, 14 Aug 2007 19:31:16 +0000 (19:31 +0000)]
formatting; split kbd constants into kbd.h

19 years agoi cannot prove that release before wakeup is wrong, but i cannot convince myself...
rsc [Tue, 14 Aug 2007 19:10:57 +0000 (19:10 +0000)]
i cannot prove that release before wakeup is wrong, but i cannot convince myself it is right either

19 years agoformatting, simplify
rsc [Tue, 14 Aug 2007 19:05:48 +0000 (19:05 +0000)]
formatting, simplify

19 years agoformatting, sleep bug fix
rsc [Tue, 14 Aug 2007 18:46:29 +0000 (18:46 +0000)]
formatting, sleep bug fix

19 years agoformatting
rsc [Tue, 14 Aug 2007 18:42:34 +0000 (18:42 +0000)]
formatting

19 years agoide_write unused => gone
rsc [Tue, 14 Aug 2007 14:24:09 +0000 (14:24 +0000)]
ide_write unused => gone

19 years agoGcc expects to be able to pick up the return
rsc [Tue, 14 Aug 2007 04:56:30 +0000 (04:56 +0000)]
Gcc expects to be able to pick up the return
address off the stack, so put one there for it.
(Bug was hidden by bad segment limits.)

19 years agoBecause limit gives the address of the last addressable
rsc [Tue, 14 Aug 2007 04:55:45 +0000 (04:55 +0000)]
Because limit gives the address of the last addressable
byte in the segment, the limit argument to SEG16 and SEG
needs to have 1 subtracted from it.

19 years agoditto
rsc [Tue, 14 Aug 2007 04:06:02 +0000 (04:06 +0000)]
ditto

19 years agoCannot use "g" as an arg constraint because
rsc [Tue, 14 Aug 2007 04:05:27 +0000 (04:05 +0000)]
Cannot use "g" as an arg constraint because
some memory references aren't actually valid
and gcc is a bit too smart in parsing (%0) and
a bit too dumb in knowing which memory refs
are not valid.  Using "r" seems to constrain gcc
to use a register as in (%eax) and not substitute
a memory reference like (-36(%ebp)).

No one really understands these things.

19 years agoadd test for rm .
rsc [Fri, 10 Aug 2007 17:53:09 +0000 (17:53 +0000)]
add test for rm .

19 years agonit
rsc [Fri, 10 Aug 2007 17:45:49 +0000 (17:45 +0000)]
nit

19 years agocorrect line numbers
rsc [Fri, 10 Aug 2007 17:45:14 +0000 (17:45 +0000)]
correct line numbers

19 years agoadd note
rsc [Fri, 10 Aug 2007 17:19:15 +0000 (17:19 +0000)]
add note

19 years agoand spinlock
rsc [Fri, 10 Aug 2007 17:17:57 +0000 (17:17 +0000)]
and spinlock

19 years agoavoid assignments in declarations
rsc [Fri, 10 Aug 2007 17:17:42 +0000 (17:17 +0000)]
avoid assignments in declarations

19 years agoreplace bogus loops with slightly less bogus loops.
rsc [Fri, 10 Aug 2007 17:05:46 +0000 (17:05 +0000)]
replace bogus loops with slightly less bogus loops.

19 years agotweak kalloc
rsc [Fri, 10 Aug 2007 17:02:36 +0000 (17:02 +0000)]
tweak kalloc

19 years agocleanup main
rsc [Fri, 10 Aug 2007 17:00:00 +0000 (17:00 +0000)]
cleanup main

19 years agovarious cleanups
rsc [Fri, 10 Aug 2007 16:52:31 +0000 (16:52 +0000)]
various cleanups

19 years agoMake cp a magic symbol.
rsc [Fri, 10 Aug 2007 16:37:27 +0000 (16:37 +0000)]
Make cp a magic symbol.

19 years agomove variable declaration up
rsc [Fri, 10 Aug 2007 16:35:01 +0000 (16:35 +0000)]
move variable declaration up

19 years agoThe final curproc[cpu()] is now cp
rsc [Thu, 9 Aug 2007 19:06:37 +0000 (19:06 +0000)]
The final curproc[cpu()] is now cp

19 years agoClearer namei
rsc [Thu, 9 Aug 2007 19:05:00 +0000 (19:05 +0000)]
Clearer namei

19 years agooops
rsc [Thu, 9 Aug 2007 17:53:03 +0000 (17:53 +0000)]
oops

19 years agotry to use cp only for curproc[cpu()]
rsc [Thu, 9 Aug 2007 17:32:40 +0000 (17:32 +0000)]
try to use cp only for curproc[cpu()]

19 years agospacing
rsc [Thu, 9 Aug 2007 16:56:40 +0000 (16:56 +0000)]
spacing

19 years agonotes
rsc [Wed, 8 Aug 2007 10:32:32 +0000 (10:32 +0000)]
notes

19 years agocheck p->killed for long-lived sleeps
rsc [Wed, 8 Aug 2007 10:29:42 +0000 (10:29 +0000)]
check p->killed for long-lived sleeps

19 years ago2007
rsc [Wed, 8 Aug 2007 10:27:15 +0000 (10:27 +0000)]
2007

19 years agohelp gcc
rsc [Wed, 8 Aug 2007 10:27:04 +0000 (10:27 +0000)]
help gcc

19 years agomove ialloc body up, avoiding double check for end of loop
rsc [Wed, 8 Aug 2007 09:53:46 +0000 (09:53 +0000)]
move ialloc body up, avoiding double check for end of loop

19 years agopanic like bget
rsc [Wed, 8 Aug 2007 09:50:46 +0000 (09:50 +0000)]
panic like bget

19 years agorefactor bget to be more like iget - make it clear that sleep loops
rsc [Wed, 8 Aug 2007 09:50:26 +0000 (09:50 +0000)]
refactor bget to be more like iget - make it clear that sleep loops

19 years agounused
rsc [Wed, 8 Aug 2007 09:44:23 +0000 (09:44 +0000)]
unused

19 years agocleaner table
rsc [Wed, 8 Aug 2007 09:43:07 +0000 (09:43 +0000)]
cleaner table

19 years agocleaner table
rsc [Wed, 8 Aug 2007 09:42:36 +0000 (09:42 +0000)]
cleaner table

19 years agoconvert syscall dispatch to table
rsc [Wed, 8 Aug 2007 09:41:21 +0000 (09:41 +0000)]
convert syscall dispatch to table

19 years agomissing void
rsc [Wed, 8 Aug 2007 09:32:39 +0000 (09:32 +0000)]
missing void

19 years agofix error message
rsc [Wed, 8 Aug 2007 09:30:58 +0000 (09:30 +0000)]
fix error message

19 years agostandardize on not using unsigned keyword
rsc [Wed, 8 Aug 2007 09:30:48 +0000 (09:30 +0000)]
standardize on not using unsigned keyword

19 years agoiincref returns new ref
rsc [Wed, 8 Aug 2007 09:30:42 +0000 (09:30 +0000)]
iincref returns new ref

19 years agofix index bug
rsc [Wed, 8 Aug 2007 09:29:18 +0000 (09:29 +0000)]
fix index bug

19 years agomake ls work on directories
rsc [Wed, 8 Aug 2007 09:17:09 +0000 (09:17 +0000)]
make ls work on directories

19 years agospacing
rsc [Wed, 8 Aug 2007 09:12:53 +0000 (09:12 +0000)]
spacing

19 years agomore bugs
rsc [Wed, 8 Aug 2007 09:10:16 +0000 (09:10 +0000)]
more bugs

19 years agofix . .. unlink bug
rsc [Wed, 8 Aug 2007 09:08:29 +0000 (09:08 +0000)]
fix . .. unlink bug

19 years agodone
rsc [Wed, 8 Aug 2007 09:02:50 +0000 (09:02 +0000)]
done

19 years agoadd DPL_USER constant
rsc [Wed, 8 Aug 2007 09:02:42 +0000 (09:02 +0000)]
add DPL_USER constant

19 years agoset init name
rsc [Wed, 8 Aug 2007 08:57:55 +0000 (08:57 +0000)]
set init name

19 years agofix various bugs
rsc [Wed, 8 Aug 2007 08:57:37 +0000 (08:57 +0000)]
fix various bugs

19 years agosilence warning
rsc [Wed, 8 Aug 2007 08:57:23 +0000 (08:57 +0000)]
silence warning

19 years agowatch for zombies
rsc [Wed, 8 Aug 2007 08:57:03 +0000 (08:57 +0000)]
watch for zombies

19 years agoatoi, for kill
rsc [Wed, 8 Aug 2007 08:56:09 +0000 (08:56 +0000)]
atoi, for kill

19 years agoadd kill
rsc [Wed, 8 Aug 2007 08:50:23 +0000 (08:50 +0000)]
add kill

19 years agospacing
rsc [Wed, 8 Aug 2007 08:44:11 +0000 (08:44 +0000)]
spacing

19 years agooops
rsc [Wed, 8 Aug 2007 08:40:08 +0000 (08:40 +0000)]
oops

19 years agofix wait bug in init
rsc [Wed, 8 Aug 2007 08:39:23 +0000 (08:39 +0000)]
fix wait bug in init

19 years agohandle EOF in shell
rsc [Wed, 8 Aug 2007 08:39:07 +0000 (08:39 +0000)]
handle EOF in shell

19 years agoadd zombie program
rsc [Wed, 8 Aug 2007 08:38:55 +0000 (08:38 +0000)]
add zombie program

19 years agocomment tweaks; more informative process list
rsc [Wed, 8 Aug 2007 08:38:38 +0000 (08:38 +0000)]
comment tweaks; more informative process list