]> Devi Nivas Git - cs3210-lab1.git/log
cs3210-lab1.git
18 years agorename 8253pit -> timer
rsc [Tue, 28 Aug 2007 04:41:20 +0000 (04:41 +0000)]
rename 8253pit -> timer

18 years agorename 8253pit.c to timer.c
rsc [Tue, 28 Aug 2007 04:40:58 +0000 (04:40 +0000)]
rename 8253pit.c to timer.c

18 years agorunoff
rsc [Tue, 28 Aug 2007 04:26:55 +0000 (04:26 +0000)]
runoff

18 years agoadd grep; add lost echo
rsc [Tue, 28 Aug 2007 04:26:34 +0000 (04:26 +0000)]
add grep; add lost echo

18 years agoavoid double echo
rsc [Tue, 28 Aug 2007 04:26:19 +0000 (04:26 +0000)]
avoid double echo

18 years agoremove _ from pipe; be like file
rsc [Tue, 28 Aug 2007 04:22:35 +0000 (04:22 +0000)]
remove _ from pipe; be like file

18 years agoclean up Makefile; add wc
rsc [Tue, 28 Aug 2007 04:20:40 +0000 (04:20 +0000)]
clean up Makefile; add wc

18 years agoadd struct stat decl
rsc [Tue, 28 Aug 2007 04:20:25 +0000 (04:20 +0000)]
add struct stat decl

18 years agodo not call proc_exit until lock dropped
rsc [Tue, 28 Aug 2007 04:20:13 +0000 (04:20 +0000)]
do not call proc_exit until lock dropped

18 years agooops
rsc [Tue, 28 Aug 2007 04:19:47 +0000 (04:19 +0000)]
oops

18 years agohandle printf("%s\n", 0)
rsc [Tue, 28 Aug 2007 04:15:35 +0000 (04:15 +0000)]
handle printf("%s\n", 0)

18 years agonit
rsc [Tue, 28 Aug 2007 04:14:32 +0000 (04:14 +0000)]
nit

18 years agooops
rsc [Tue, 28 Aug 2007 04:13:40 +0000 (04:13 +0000)]
oops

18 years agonit
rsc [Tue, 28 Aug 2007 04:13:24 +0000 (04:13 +0000)]
nit

18 years agoformatting tweaks
rsc [Tue, 28 Aug 2007 03:46:58 +0000 (03:46 +0000)]
formatting tweaks

18 years agocomment non-check of cp->killed
rsc [Tue, 28 Aug 2007 03:32:49 +0000 (03:32 +0000)]
comment non-check of cp->killed

18 years agoNo one is going to find this inode.
rsc [Tue, 28 Aug 2007 03:31:11 +0000 (03:31 +0000)]
No one is going to find this inode.
There is only one ref to it -- the caller --
and no links to it.

18 years agoNew shell.
rsc [Tue, 28 Aug 2007 03:28:29 +0000 (03:28 +0000)]
New shell.

18 years agoMove keyboard code into kbd.c; add backspace handling.
rsc [Tue, 28 Aug 2007 03:28:13 +0000 (03:28 +0000)]
Move keyboard code into kbd.c; add backspace handling.

18 years agooops
rsc [Tue, 28 Aug 2007 02:39:40 +0000 (02:39 +0000)]
oops

18 years agomove mp.h to low-level
rsc [Mon, 27 Aug 2007 23:55:45 +0000 (23:55 +0000)]
move mp.h to low-level

18 years agono more ioapic.h
rsc [Mon, 27 Aug 2007 23:54:24 +0000 (23:54 +0000)]
no more ioapic.h

18 years agomake code match comment
rsc [Mon, 27 Aug 2007 23:53:50 +0000 (23:53 +0000)]
make code match comment

18 years agomake code match comment
rsc [Mon, 27 Aug 2007 23:53:17 +0000 (23:53 +0000)]
make code match comment

18 years agomake code match comment
rsc [Mon, 27 Aug 2007 23:53:17 +0000 (23:53 +0000)]
make code match comment

18 years agoRename main0 to main.
rsc [Mon, 27 Aug 2007 23:32:16 +0000 (23:32 +0000)]
Rename main0 to main.

18 years agodelete unnecessary #include lines
rsc [Mon, 27 Aug 2007 23:26:33 +0000 (23:26 +0000)]
delete unnecessary #include lines

18 years agoSimplify MP hardware code.
rsc [Mon, 27 Aug 2007 22:53:31 +0000 (22:53 +0000)]
Simplify MP hardware code.
Mainly delete unused constants and code.

Move mp_startthem to main.c as bootothers.

18 years agoClean up lapic code.
rsc [Mon, 27 Aug 2007 16:57:13 +0000 (16:57 +0000)]
Clean up lapic code.

One initialization function now, not three.
Use #defines instead of enums (consistent with other code, but sigh).

Still boots in Bochs in SMP mode.

18 years agonits
rsc [Mon, 27 Aug 2007 16:55:10 +0000 (16:55 +0000)]
nits

18 years agonits
rsc [Mon, 27 Aug 2007 16:12:08 +0000 (16:12 +0000)]
nits

18 years agonits
rsc [Mon, 27 Aug 2007 16:06:19 +0000 (16:06 +0000)]
nits

18 years agooops
rsc [Mon, 27 Aug 2007 16:06:15 +0000 (16:06 +0000)]
oops

18 years agoEdit exec.
rsc [Mon, 27 Aug 2007 15:17:40 +0000 (15:17 +0000)]
Edit exec.

Do not commit to new memory image until
nothing can go wrong, avoiding bad2 case.

Be sure to allocate enough stack space for argv.

Load executable before initializing stack, to
keep ELF loops together.

Make argv loop clearer.

18 years agonits
rsc [Mon, 27 Aug 2007 14:39:50 +0000 (14:39 +0000)]
nits

18 years agoformatting shuffle
rsc [Mon, 27 Aug 2007 14:37:13 +0000 (14:37 +0000)]
formatting shuffle

18 years agofileincref -> filedup (consistent with idup)
rsc [Mon, 27 Aug 2007 14:35:09 +0000 (14:35 +0000)]
fileincref -> filedup (consistent with idup)

18 years agonits
rsc [Mon, 27 Aug 2007 14:31:50 +0000 (14:31 +0000)]
nits

18 years agotell what an inode is
rsc [Mon, 27 Aug 2007 14:23:48 +0000 (14:23 +0000)]
tell what an inode is

18 years agoFS cleanup.
rsc [Mon, 27 Aug 2007 14:20:24 +0000 (14:20 +0000)]
FS cleanup.

Add utility routines bzero, readsb so that balloc, bfree fit on one page.
Make balloc loop clearer.

18 years agoAnother attempt at the bio.c comment.
rsc [Mon, 27 Aug 2007 14:09:30 +0000 (14:09 +0000)]
Another attempt at the bio.c comment.

Rename B_WRITE to B_DIRTY and then let ide.c
maintain the B_VALID and B_DIRTY flags.

18 years agoReplace yield system call with sleep.
rsc [Mon, 27 Aug 2007 13:34:35 +0000 (13:34 +0000)]
Replace yield system call with sleep.

18 years agoformatting, fix comment
rsc [Mon, 27 Aug 2007 13:11:13 +0000 (13:11 +0000)]
formatting, fix comment

18 years agomake kfree loop same as kalloc
rsc [Mon, 27 Aug 2007 12:50:36 +0000 (12:50 +0000)]
make kfree loop same as kalloc

18 years agonits
rsc [Mon, 27 Aug 2007 12:48:20 +0000 (12:48 +0000)]
nits

18 years agocut bootmain to 1 sheet
rsc [Mon, 27 Aug 2007 12:48:03 +0000 (12:48 +0000)]
cut bootmain to 1 sheet

18 years agoshuffle for formatting
rsc [Fri, 24 Aug 2007 22:17:54 +0000 (22:17 +0000)]
shuffle for formatting

18 years agominor cleanups
rsc [Fri, 24 Aug 2007 22:17:41 +0000 (22:17 +0000)]
minor cleanups

18 years agonit
rsc [Fri, 24 Aug 2007 21:33:11 +0000 (21:33 +0000)]
nit

18 years agonits
rsc [Fri, 24 Aug 2007 21:14:58 +0000 (21:14 +0000)]
nits

18 years agofirst ever correct use of strncpy
rsc [Fri, 24 Aug 2007 21:00:02 +0000 (21:00 +0000)]
first ever correct use of strncpy

18 years agoremove unused variable
rsc [Fri, 24 Aug 2007 20:59:43 +0000 (20:59 +0000)]
remove unused variable

18 years agoRemove struct uinode.
rsc [Fri, 24 Aug 2007 20:54:23 +0000 (20:54 +0000)]
Remove struct uinode.
Remove type arg to mknod (assume T_DEV).

18 years agonot first anymore
rsc [Fri, 24 Aug 2007 20:28:21 +0000 (20:28 +0000)]
not first anymore

18 years agonits
rsc [Fri, 24 Aug 2007 20:28:08 +0000 (20:28 +0000)]
nits

18 years agoalign
rsc [Fri, 24 Aug 2007 20:27:47 +0000 (20:27 +0000)]
align

18 years agomake wakeup1 static
rsc [Fri, 24 Aug 2007 20:22:55 +0000 (20:22 +0000)]
make wakeup1 static

18 years agotest that fork fails gracefully
rsc [Fri, 24 Aug 2007 20:20:23 +0000 (20:20 +0000)]
test that fork fails gracefully

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

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

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

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

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

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

18 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

18 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

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