]> Devi Nivas Git - cs3210-lab0.git/log
cs3210-lab0.git
14 years agofixes from Peter Froehlich
Russ Cox [Mon, 28 Feb 2011 14:32:20 +0000 (09:32 -0500)]
fixes from Peter Froehlich

14 years agoweb: rev5
Russ Cox [Sun, 20 Feb 2011 02:21:49 +0000 (21:21 -0500)]
web: rev5

14 years agoupdated book pdfs
Russ Cox [Sun, 20 Feb 2011 02:19:58 +0000 (21:19 -0500)]
updated book pdfs

14 years agoxv6: formatting, cleanup, rev5 (take 2)
Russ Cox [Sun, 20 Feb 2011 02:17:55 +0000 (21:17 -0500)]
xv6: formatting, cleanup, rev5 (take 2)

14 years agoxv6: formatting, cleanup, rev5
Russ Cox [Sun, 20 Feb 2011 02:16:54 +0000 (21:16 -0500)]
xv6: formatting, cleanup, rev5

14 years agoxv6: refresh from 2010 page
Russ Cox [Sat, 19 Feb 2011 15:36:14 +0000 (10:36 -0500)]
xv6: refresh from 2010 page

14 years agoxv6: link to xv6-rev4
Russ Cox [Sat, 19 Feb 2011 15:23:19 +0000 (10:23 -0500)]
xv6: link to xv6-rev4

15 years agomissing file memide.c
Russ Cox [Tue, 11 Jan 2011 18:54:23 +0000 (13:54 -0500)]
missing file memide.c

15 years agomore trivial cleanup
Russ Cox [Tue, 11 Jan 2011 18:51:40 +0000 (13:51 -0500)]
more trivial cleanup

15 years agomultiboot support and memory-only (no disk) kernel
Russ Cox [Tue, 11 Jan 2011 18:27:45 +0000 (13:27 -0500)]
multiboot support and memory-only (no disk) kernel

15 years agomp: do not panic on surprising hw
Russ Cox [Tue, 11 Jan 2011 18:16:28 +0000 (13:16 -0500)]
mp: do not panic on surprising hw

15 years agomake new code like old code
Russ Cox [Tue, 11 Jan 2011 18:01:13 +0000 (13:01 -0500)]
make new code like old code

Variable declarations at top of function,
separate from initialization.

Use == 0 instead of ! for checking pointers.

Consistent spacing around {, *, casts.

Declare 0-parameter functions as (void) not ().

Integer valued functions return -1 on failure, 0 on success.

15 years agomkfs: avoid clash with system struct stat
Russ Cox [Mon, 10 Jan 2011 15:43:40 +0000 (10:43 -0500)]
mkfs: avoid clash with system struct stat

15 years agomkfs: avoid out of bounds access to sb in wsect
Russ Cox [Sun, 2 Jan 2011 22:59:57 +0000 (17:59 -0500)]
mkfs: avoid out of bounds access to sb in wsect

15 years agoeven more fabulous exec
Robert Morris [Wed, 29 Sep 2010 18:12:26 +0000 (14:12 -0400)]
even more fabulous exec

15 years agocheck exec() arg length
Robert Morris [Mon, 27 Sep 2010 20:17:57 +0000 (16:17 -0400)]
check exec() arg length
fix double iunlockput

15 years agocopyout() copies data to a va in a pagetable, for exec() &c
Robert Morris [Mon, 27 Sep 2010 20:14:33 +0000 (16:14 -0400)]
copyout() copies data to a va in a pagetable, for exec() &c
usertest that passes too many arguments, break exec

15 years agomap kernel instructions r/o
Robert Morris [Mon, 20 Sep 2010 10:00:22 +0000 (06:00 -0400)]
map kernel instructions r/o

15 years agoMerge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
Robert Morris [Sun, 19 Sep 2010 17:48:22 +0000 (13:48 -0400)]
Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6

15 years agomy comment is wrong, exec handles BSS fine
Robert Morris [Sun, 19 Sep 2010 17:47:52 +0000 (13:47 -0400)]
my comment is wrong, exec handles BSS fine

15 years agoexec questions
Robert Morris [Sun, 19 Sep 2010 11:18:42 +0000 (07:18 -0400)]
exec questions

15 years agoSimplify boot loader by removing some JOS'isms
Austin Clements [Wed, 15 Sep 2010 20:15:07 +0000 (16:15 -0400)]
Simplify boot loader by removing some JOS'isms

15 years agochange some comments, maybe more informative
Robert Morris [Mon, 13 Sep 2010 19:34:44 +0000 (15:34 -0400)]
change some comments, maybe more informative
delete most comments from bootother.S (since copy of bootasm.S)
ksegment() -> seginit()
move more stuff from main() to mainc()

15 years agoRev 4
Austin Clements [Fri, 3 Sep 2010 19:47:28 +0000 (15:47 -0400)]
Rev 4

15 years agoUpdate example in TOC footer
Austin Clements [Thu, 2 Sep 2010 23:03:48 +0000 (19:03 -0400)]
Update example in TOC footer

15 years agoConsistent style in defs.h
Austin Clements [Thu, 2 Sep 2010 23:01:25 +0000 (19:01 -0400)]
Consistent style in defs.h

15 years agoGet consoleintr back on one page
Austin Clements [Thu, 2 Sep 2010 22:54:50 +0000 (18:54 -0400)]
Get consoleintr back on one page

15 years agoGet cgaputc and consputc back on the same page
Austin Clements [Thu, 2 Sep 2010 22:50:49 +0000 (18:50 -0400)]
Get cgaputc and consputc back on the same page

15 years agoGet rid of the blank page in picirq.c. It misaligs things now.
Austin Clements [Thu, 2 Sep 2010 22:36:06 +0000 (18:36 -0400)]
Get rid of the blank page in picirq.c.  It misaligs things now.

15 years agoSimplify allocuvm/deallocuvm to operate in a contiguous memory model. This makes...
Austin Clements [Thu, 2 Sep 2010 22:28:36 +0000 (18:28 -0400)]
Simplify allocuvm/deallocuvm to operate in a contiguous memory model.  This makes their interface match up better with proc->sz and also simplifies the callers (it even gets the main body of exec on one page).

15 years agoNits
Austin Clements [Thu, 2 Sep 2010 21:03:19 +0000 (17:03 -0400)]
Nits

15 years agoComment inituvm and loaduvm
Austin Clements [Thu, 2 Sep 2010 20:39:55 +0000 (16:39 -0400)]
Comment inituvm and loaduvm

15 years agoFix comment capitalization
Austin Clements [Thu, 2 Sep 2010 20:36:38 +0000 (16:36 -0400)]
Fix comment capitalization

15 years agoRearrange vm.c so it's in logical order and prints nicely. Shorten a few functions...
Austin Clements [Thu, 2 Sep 2010 20:23:15 +0000 (16:23 -0400)]
Rearrange vm.c so it's in logical order and prints nicely.  Shorten a few functions in uninteresting ways to make them fit.

15 years agoSimplify inituvm and userinit by assuming initcode fits on a page
Austin Clements [Thu, 2 Sep 2010 19:37:05 +0000 (15:37 -0400)]
Simplify inituvm and userinit by assuming initcode fits on a page

15 years agoSimplify freevm using deallocuvm
Austin Clements [Thu, 2 Sep 2010 19:18:19 +0000 (15:18 -0400)]
Simplify freevm using deallocuvm

15 years agoOops. Broke the build when I rearranged proc.c
Austin Clements [Thu, 2 Sep 2010 18:30:06 +0000 (14:30 -0400)]
Oops.  Broke the build when I rearranged proc.c

15 years agoRemove unused nop_pause function.
Austin Clements [Thu, 2 Sep 2010 18:08:45 +0000 (14:08 -0400)]
Remove unused nop_pause function.

15 years agoRearrange proc.h and proc.c to get our action-packed spreads back (mostly). They...
Austin Clements [Thu, 2 Sep 2010 08:15:17 +0000 (04:15 -0400)]
Rearrange proc.h and proc.c to get our action-packed spreads back (mostly).  They also make sense in this order, so it's not just for page layout.

15 years agoRe-re-arrange bootasm and bootother. We can't get bootasm and bootmain on the same...
Austin Clements [Thu, 2 Sep 2010 08:06:35 +0000 (04:06 -0400)]
Re-re-arrange bootasm and bootother.  We can't get bootasm and bootmain on the same page, but this will make them easier to flip between.

15 years agoI totally misunderstood the even/odd spec. Add some docs, remove my 'left+' hack...
Austin Clements [Thu, 2 Sep 2010 08:03:42 +0000 (04:03 -0400)]
I totally misunderstood the even/odd spec.  Add some docs, remove my 'left+' hack, and orthogonalize left/right versus even/odd so you can specify them independently.

15 years agoSpecify in runoff.spec which side sheet 1 is on, since it keeps changing
Austin Clements [Thu, 2 Sep 2010 07:57:20 +0000 (03:57 -0400)]
Specify in runoff.spec which side sheet 1 is on, since it keeps changing

15 years agoPack five columns into cross-ref. This saves us an entire page and fixes the single...
Austin Clements [Thu, 2 Sep 2010 07:56:36 +0000 (03:56 -0400)]
Pack five columns into cross-ref.  This saves us an entire page and fixes the single dangling line.

15 years agoOops, missed a comment about the stack guard
Austin Clements [Thu, 2 Sep 2010 07:36:39 +0000 (03:36 -0400)]
Oops, missed a comment about the stack guard

15 years agoAdd Nickolai and myself and scrunch two lines out of the text elsewhere
Austin Clements [Thu, 2 Sep 2010 07:25:33 +0000 (03:25 -0400)]
Add Nickolai and myself and scrunch two lines out of the text elsewhere

15 years agoSlight simplification of copyuvm. We could simplify other things now that processes...
Austin Clements [Wed, 1 Sep 2010 21:14:58 +0000 (17:14 -0400)]
Slight simplification of copyuvm.  We could simplify other things now that processes are contiguous, but we'd have to think harder about the error paths.

15 years agoRemove the stack guard page. Processes are now contiguous from 0 to proc->sz, which...
Austin Clements [Wed, 1 Sep 2010 20:46:37 +0000 (16:46 -0400)]
Remove the stack guard page.  Processes are now contiguous from 0 to proc->sz, which means our syscall argument validation is correct.  Add a pointer validation test and remove the stack test, which tested for the guard page.

15 years agoMake it easy to change the number of CPUs
Austin Clements [Wed, 1 Sep 2010 06:14:35 +0000 (02:14 -0400)]
Make it easy to change the number of CPUs

15 years agoSpace police
Austin Clements [Wed, 1 Sep 2010 04:41:25 +0000 (00:41 -0400)]
Space police

15 years agoTab police
Austin Clements [Wed, 1 Sep 2010 04:32:27 +0000 (00:32 -0400)]
Tab police

15 years agoMerge branch 'master' of git+ssh://am.lcs/home/am0/6.828/xv6
Austin Clements [Wed, 1 Sep 2010 04:31:04 +0000 (00:31 -0400)]
Merge branch 'master' of git+ssh://am.lcs/home/am0/6.828/xv6

15 years agoFix similar leak in copyuvm
Austin Clements [Wed, 1 Sep 2010 04:27:12 +0000 (00:27 -0400)]
Fix similar leak in copyuvm

15 years agoCleanup if allocuvm fails to alloc. Add a test.
Austin Clements [Wed, 1 Sep 2010 01:49:49 +0000 (21:49 -0400)]
Cleanup if allocuvm fails to alloc.  Add a test.

15 years agoMerge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
Robert Morris [Tue, 31 Aug 2010 23:21:52 +0000 (19:21 -0400)]
Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6

15 years agooops. last minute simplicifaction to kalloc().
Robert Morris [Tue, 31 Aug 2010 23:21:33 +0000 (19:21 -0400)]
oops. last minute simplicifaction to kalloc().

15 years agoPage break kalloc.c
Austin Clements [Tue, 31 Aug 2010 21:52:03 +0000 (17:52 -0400)]
Page break kalloc.c

15 years agoOur proc.c alignment is perfect. Since ksegment/usegment went away, we get a column...
Austin Clements [Tue, 31 Aug 2010 21:49:47 +0000 (17:49 -0400)]
Our proc.c alignment is perfect.  Since ksegment/usegment went away, we get a column back, so we get our two action-packed spreads.

15 years agoMake it possible to express half-page preferences
Austin Clements [Tue, 31 Aug 2010 21:46:30 +0000 (17:46 -0400)]
Make it possible to express half-page preferences

15 years agoGot the meat of spinlocks on one spread
Austin Clements [Tue, 31 Aug 2010 21:40:21 +0000 (17:40 -0400)]
Got the meat of spinlocks on one spread

15 years agoSwap bootmain.c and bootother.S. This puts the whole boot process on one spread...
Austin Clements [Tue, 31 Aug 2010 21:35:17 +0000 (17:35 -0400)]
Swap bootmain.c and bootother.S.  This puts the whole boot process on one spread, though it separates the two asm files.

15 years agoSheet 1 is a right page now because of the (much) longer cross-ref
Austin Clements [Tue, 31 Aug 2010 21:33:04 +0000 (17:33 -0400)]
Sheet 1 is a right page now because of the (much) longer cross-ref

15 years agoprint depends on runoff.spec
Austin Clements [Tue, 31 Aug 2010 21:30:31 +0000 (17:30 -0400)]
print depends on runoff.spec

15 years agoWe don't use lesp/lebp and using them at all from C would be fraught with peril....
Austin Clements [Tue, 31 Aug 2010 21:07:54 +0000 (17:07 -0400)]
We don't use lesp/lebp and using them at all from C would be fraught with peril.  Keep resp/rebp, but fix their code style.

15 years agoPage breaking of mmu.h
Austin Clements [Tue, 31 Aug 2010 20:54:50 +0000 (16:54 -0400)]
Page breaking of mmu.h

15 years agoStart PDE defs on new page
Austin Clements [Tue, 31 Aug 2010 20:47:50 +0000 (16:47 -0400)]
Start PDE defs on new page

15 years agoFollow xv6 code style. Also fixes indexing for these functions
Austin Clements [Tue, 31 Aug 2010 20:43:41 +0000 (16:43 -0400)]
Follow xv6 code style.  Also fixes indexing for these functions

15 years agoRearrange for better page breaking
Austin Clements [Tue, 31 Aug 2010 20:42:05 +0000 (16:42 -0400)]
Rearrange for better page breaking

15 years agoFix too-long lines
Austin Clements [Tue, 31 Aug 2010 20:26:08 +0000 (16:26 -0400)]
Fix too-long lines

15 years agoRebalance TOC
Austin Clements [Tue, 31 Aug 2010 20:18:44 +0000 (16:18 -0400)]
Rebalance TOC

15 years agoAcknowledge patches
Austin Clements [Tue, 31 Aug 2010 20:13:20 +0000 (16:13 -0400)]
Acknowledge patches

15 years agoHopefully get the printf size spec right, regardless of compiler.
Austin Clements [Tue, 31 Aug 2010 20:01:38 +0000 (16:01 -0400)]
Hopefully get the printf size spec right, regardless of compiler.

15 years agono more pminit, or ELF header at 0x10000
Robert Morris [Tue, 31 Aug 2010 19:39:25 +0000 (15:39 -0400)]
no more pminit, or ELF header at 0x10000
kinit() knows about end and PHYSTOP
map all of kernel read/write (rather than r/o instructions)
thanks, austin

15 years agomkfs must be compiled 32-bit. Fix mkfs warnings
Austin Clements [Tue, 31 Aug 2010 19:11:10 +0000 (15:11 -0400)]
mkfs must be compiled 32-bit.  Fix mkfs warnings

15 years agoInfer qemu path, just like in JOS
Austin Clements [Tue, 31 Aug 2010 19:05:27 +0000 (15:05 -0400)]
Infer qemu path, just like in JOS

15 years agoInfer TOOLPREFIX, just like in JOS
Austin Clements [Tue, 31 Aug 2010 19:01:26 +0000 (15:01 -0400)]
Infer TOOLPREFIX, just like in JOS

15 years agokalloc/kfree now only a page at a time
Robert Morris [Tue, 31 Aug 2010 16:54:47 +0000 (12:54 -0400)]
kalloc/kfree now only a page at a time
do not keep sorted contiguous free list

15 years agoMerge remote branch 'origin/master' into page
Robert Morris [Mon, 30 Aug 2010 19:30:53 +0000 (15:30 -0400)]
Merge remote branch 'origin/master' into page

15 years agoFix for gdbstub argument change in qemu 0.11. Rename qemu-gdb-nox target to qemu...
Austin Clements [Mon, 30 Aug 2010 16:22:08 +0000 (12:22 -0400)]
Fix for gdbstub argument change in qemu 0.11.  Rename qemu-gdb-nox target to qemu-nox-gdb because you frequently want to add the gdb part, but rarely the nox part.

15 years agooops ended up with 2x vm.c
Robert Morris [Mon, 30 Aug 2010 15:17:54 +0000 (11:17 -0400)]
oops ended up with 2x vm.c

15 years agoMerge remote branch 'origin/page' into page
Robert Morris [Mon, 30 Aug 2010 14:23:27 +0000 (10:23 -0400)]
Merge remote branch 'origin/page' into page

15 years agoxx
Robert Morris [Mon, 30 Aug 2010 14:13:49 +0000 (10:13 -0400)]
xx

15 years agono more xv6.pdf .ps
Robert Morris [Mon, 30 Aug 2010 11:26:54 +0000 (07:26 -0400)]
no more xv6.pdf .ps

15 years agowe don't need CR0_WP
Robert Morris [Mon, 30 Aug 2010 10:48:48 +0000 (06:48 -0400)]
we don't need CR0_WP

15 years agoset only PG and WP in vminit; the rest don't seem to be needed and are confusing
Robert Morris [Mon, 30 Aug 2010 10:38:58 +0000 (06:38 -0400)]
set only PG and WP in vminit; the rest don't seem to be needed and are confusing

15 years agoMerge commit 'origin/page' into page
Frans Kaashoek [Thu, 26 Aug 2010 12:03:18 +0000 (08:03 -0400)]
Merge commit 'origin/page' into page

15 years agoadd vm.c
Frans Kaashoek [Thu, 26 Aug 2010 11:51:08 +0000 (07:51 -0400)]
add vm.c

15 years agouptime() sys call for benchmarking
Robert Morris [Wed, 11 Aug 2010 18:34:45 +0000 (14:34 -0400)]
uptime() sys call for benchmarking
increase PHYSTOP

15 years agoallow sbrk(-x) to de-allocate user memory
Robert Morris [Tue, 10 Aug 2010 21:08:41 +0000 (17:08 -0400)]
allow sbrk(-x) to de-allocate user memory

15 years agofix corner cases in exec of ELF
Robert Morris [Fri, 6 Aug 2010 15:12:18 +0000 (11:12 -0400)]
fix corner cases in exec of ELF
put an invalid page below the stack
have fork() handle invalid pages

15 years agoadd some comments
Robert Morris [Fri, 6 Aug 2010 01:16:55 +0000 (21:16 -0400)]
add some comments
find out the hard way why user and kernel must have separate segment descriptors

15 years agoremove some unused vm #defines
Robert Morris [Thu, 5 Aug 2010 20:00:59 +0000 (16:00 -0400)]
remove some unused vm #defines
fix corner cases with alignment when mapping kernel ELF file

15 years agomove jkstack to main.c
Robert Morris [Thu, 5 Aug 2010 18:15:03 +0000 (14:15 -0400)]
move jkstack to main.c
replace jstack with asm()s

15 years agofix allocuvm() to handle sbrk() with non-page-granularity argument
Robert Morris [Thu, 5 Aug 2010 16:10:54 +0000 (12:10 -0400)]
fix allocuvm() to handle sbrk() with non-page-granularity argument
(maybe this never worked, but it works now)

15 years agokill TLB shoot down code
Frans Kaashoek [Wed, 28 Jul 2010 18:38:05 +0000 (14:38 -0400)]
kill TLB shoot down code

15 years agomore cleanup
Frans Kaashoek [Mon, 26 Jul 2010 12:10:02 +0000 (08:10 -0400)]
more cleanup

15 years agosome cleanup
Frans Kaashoek [Mon, 26 Jul 2010 00:30:21 +0000 (20:30 -0400)]
some cleanup

15 years agoa few nits
Frans Kaashoek [Fri, 23 Jul 2010 16:52:50 +0000 (12:52 -0400)]
a few nits
passes all tests on two-processor smp

15 years agooops, vm.c
Frans Kaashoek [Fri, 23 Jul 2010 16:52:35 +0000 (12:52 -0400)]
oops, vm.c

15 years agoCheckpoint page-table version for SMP
Frans Kaashoek [Fri, 23 Jul 2010 11:41:13 +0000 (07:41 -0400)]
Checkpoint page-table version for SMP
Includes code for TLB shootdown (which actually seems unnecessary for xv6)

15 years agonits
Frans Kaashoek [Fri, 2 Jul 2010 21:45:37 +0000 (17:45 -0400)]
nits