]> Devi Nivas Git - cs3210-lab0.git/log
cs3210-lab0.git
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

15 years agoInitial version of single-cpu xv6 with page tables
Frans Kaashoek [Fri, 2 Jul 2010 18:51:53 +0000 (14:51 -0400)]
Initial version of single-cpu xv6 with page tables

16 years agoanother rev2 -> rev3
Russ Cox [Sat, 6 Feb 2010 21:08:06 +0000 (16:08 -0500)]
another rev2 -> rev3

16 years agopoint at rev3
Russ Cox [Sat, 6 Feb 2010 20:55:09 +0000 (12:55 -0800)]
point at rev3

16 years ago8ae0 instead of 8e00, thanks yandong
Frans Kaashoek [Tue, 1 Dec 2009 19:07:12 +0000 (14:07 -0500)]
8ae0 instead of 8e00, thanks yandong

16 years agoAdd stressfs and gdbutil to dist
Austin Clements [Mon, 23 Nov 2009 22:50:58 +0000 (17:50 -0500)]
Add stressfs and gdbutil to dist

16 years agoGDB utilities
Austin Clements [Mon, 23 Nov 2009 22:47:57 +0000 (17:47 -0500)]
GDB utilities

16 years agoAdd the test we used in lecture to creash the IDE system when the
Austin Clements [Mon, 23 Nov 2009 22:27:26 +0000 (17:27 -0500)]
Add the test we used in lecture to creash the IDE system when the
locks were moved around.

16 years agoMerge branch 'master' of git+ssh://am.lcs/home/am0/6.828/xv6
Austin Clements [Sun, 25 Oct 2009 01:31:08 +0000 (21:31 -0400)]
Merge branch 'master' of git+ssh://am.lcs/home/am0/6.828/xv6

16 years agoComment typo
Austin Clements [Sun, 25 Oct 2009 01:31:01 +0000 (21:31 -0400)]
Comment typo

16 years agoMerge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
Frans Kaashoek [Wed, 7 Oct 2009 21:42:25 +0000 (17:42 -0400)]
Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6

16 years agofine-tune comment
Frans Kaashoek [Wed, 7 Oct 2009 21:42:14 +0000 (17:42 -0400)]
fine-tune comment

16 years agofine tune comment
Frans Kaashoek [Wed, 7 Oct 2009 19:31:55 +0000 (15:31 -0400)]
fine tune comment

16 years agoRemove memcpy prototypes at Russ' request to prevent code from calling
Austin Clements [Wed, 7 Oct 2009 17:06:55 +0000 (13:06 -0400)]
Remove memcpy prototypes at Russ' request to prevent code from calling
memcpy directly.

16 years agoProvide memcpy for compatibility with older versions of gcc
Austin Clements [Wed, 7 Oct 2009 16:05:56 +0000 (12:05 -0400)]
Provide memcpy for compatibility with older versions of gcc

16 years agoRecord debug info for assmebly code
Austin Clements [Mon, 5 Oct 2009 17:20:23 +0000 (13:20 -0400)]
Record debug info for assmebly code

16 years agoHandle backspace on serial input and output better. Better solutions are welcome.
Austin Clements [Thu, 1 Oct 2009 02:32:50 +0000 (22:32 -0400)]
Handle backspace on serial input and output better.  Better solutions are welcome.

16 years agoBe consistent with JOS make targets
Austin Clements [Thu, 1 Oct 2009 02:09:48 +0000 (22:09 -0400)]
Be consistent with JOS make targets

16 years agoHack to make newlines on the serial port work
Austin Clements [Mon, 21 Sep 2009 03:09:59 +0000 (23:09 -0400)]
Hack to make newlines on the serial port work

16 years agoUse the symbol file
Austin Clements [Mon, 21 Sep 2009 03:08:36 +0000 (23:08 -0400)]
Use the symbol file

16 years agoxv6 runs the console on the serial port, not the parallel port
Austin Clements [Mon, 21 Sep 2009 03:07:59 +0000 (23:07 -0400)]
xv6 runs the console on the serial port, not the parallel port

16 years agonit in comment
Frans Kaashoek [Mon, 21 Sep 2009 00:19:58 +0000 (20:19 -0400)]
nit in comment

16 years agoadd .gdbinit.tmpl to dist
Silas Boyd-Wickizer [Tue, 15 Sep 2009 23:15:59 +0000 (19:15 -0400)]
add .gdbinit.tmpl to dist

16 years agoadd uart.c
Silas Boyd-Wickizer [Tue, 15 Sep 2009 23:15:48 +0000 (19:15 -0400)]
add uart.c

16 years agorev3
Silas Boyd-Wickizer [Tue, 15 Sep 2009 21:21:14 +0000 (17:21 -0400)]
rev3

16 years agoignore .gitignore
Silas Boyd-Wickizer [Tue, 15 Sep 2009 21:21:02 +0000 (17:21 -0400)]
ignore .gitignore

16 years agoqemu-gdb target and script
Silas Boyd-Wickizer [Tue, 15 Sep 2009 21:15:36 +0000 (17:15 -0400)]
qemu-gdb target and script

16 years agonew pdf
Russ Cox [Thu, 3 Sep 2009 07:46:28 +0000 (00:46 -0700)]
new pdf

16 years agoformatting tweaks
Russ Cox [Thu, 3 Sep 2009 07:46:15 +0000 (00:46 -0700)]
formatting tweaks

16 years agocan set just %gs now.
Russ Cox [Wed, 2 Sep 2009 17:09:34 +0000 (10:09 -0700)]
can set just %gs now.

16 years agoanother attempt at cpu-local variables.
Russ Cox [Wed, 2 Sep 2009 17:07:59 +0000 (10:07 -0700)]
another attempt at cpu-local variables.
this time do it ourselves instead of piggybacking on TLS.
add -fno-pic to Makefile; pic code breaks our fake TLS.

16 years agolapic: disable microdelay because it makes Bochs slow
Russ Cox [Wed, 2 Sep 2009 17:06:37 +0000 (10:06 -0700)]
lapic: disable microdelay because it makes Bochs slow

16 years agofix TLS again;
Russ Cox [Wed, 2 Sep 2009 14:59:24 +0000 (07:59 -0700)]
fix TLS again;
still not quite but a lot better.

16 years agoFix TLS for PIC systems
Russ Cox [Wed, 2 Sep 2009 14:41:08 +0000 (07:41 -0700)]
Fix TLS for PIC systems

16 years agofix bootblock build with gcc 4.4
Nickolai Zeldovich [Wed, 2 Sep 2009 06:03:46 +0000 (02:03 -0400)]
fix bootblock build with gcc 4.4

16 years agoassorted fixes:
Russ Cox [Mon, 31 Aug 2009 06:02:08 +0000 (23:02 -0700)]
assorted fixes:
 * rename c/cp to cpu/proc
 * rename cpu.context to cpu.scheduler
 * fix some comments
 * formatting for printout

16 years agoshuffle and tweak for formatting.
Russ Cox [Sat, 8 Aug 2009 08:07:30 +0000 (01:07 -0700)]
shuffle and tweak for formatting.
pdf has very good page breaks now.
would be a good copy for fall 2009.

16 years agoexec tweaks
Russ Cox [Mon, 13 Jul 2009 16:34:45 +0000 (09:34 -0700)]
exec tweaks

16 years agoremove //DOC in the right place
Russ Cox [Mon, 13 Jul 2009 02:07:30 +0000 (19:07 -0700)]
remove //DOC in the right place

16 years agostrip //DOC comments during printing
Russ Cox [Mon, 13 Jul 2009 01:56:00 +0000 (18:56 -0700)]
strip //DOC comments during printing

16 years agomerge
Russ Cox [Mon, 13 Jul 2009 01:39:07 +0000 (18:39 -0700)]
merge

16 years agomore doc tweaks
Russ Cox [Mon, 13 Jul 2009 01:33:37 +0000 (18:33 -0700)]
more doc tweaks

16 years agoundo
Silas Boyd-Wickizer [Sun, 12 Jul 2009 19:28:14 +0000 (15:28 -0400)]
undo

16 years agotest commit email
Silas Boyd-Wickizer [Sun, 12 Jul 2009 19:17:29 +0000 (15:17 -0400)]
test commit email

16 years agoinitproc, usegment, swtch tweaks
Russ Cox [Sun, 12 Jul 2009 02:28:29 +0000 (19:28 -0700)]
initproc, usegment, swtch tweaks

16 years agospinlock: rename parameter lock -> lk
Russ Cox [Sun, 12 Jul 2009 02:26:51 +0000 (19:26 -0700)]
spinlock: rename parameter lock -> lk

16 years agommu.h: unused SEG_NULL
Russ Cox [Sun, 12 Jul 2009 02:26:29 +0000 (19:26 -0700)]
mmu.h: unused SEG_NULL

16 years agorearrangements and cleanup for text
Russ Cox [Sun, 12 Jul 2009 02:26:01 +0000 (19:26 -0700)]
rearrangements and cleanup for text

16 years agotrap cleanup
Russ Cox [Sun, 12 Jul 2009 02:24:56 +0000 (19:24 -0700)]
trap cleanup

IRQ_OFFSET -> T_IRQ0 (a trap number not an IRQ number)
T_SYSCALL 0x30 -> 0x40 (move out of IRQ range)

16 years agobootasm cleanup
Russ Cox [Sun, 12 Jul 2009 02:15:32 +0000 (19:15 -0700)]
bootasm cleanup

16 years agos/IRQ_OFFSET/T_IRQ0/: it's a trap number, not an irq number.
Russ Cox [Sun, 12 Jul 2009 01:17:32 +0000 (18:17 -0700)]
s/IRQ_OFFSET/T_IRQ0/: it's a trap number, not an irq number.
move the SYSCALL number up, so does not overlap the IRQ traps.

16 years agocompile fixes
rsc [Sun, 31 May 2009 05:13:51 +0000 (05:13 +0000)]
compile fixes

16 years agogroup locks into structs they protect.
rsc [Sun, 31 May 2009 05:12:21 +0000 (05:12 +0000)]
group locks into structs they protect.
few naming nits.

16 years agousys.S: put before init.c, STUB -> SYSCALL
rsc [Sun, 31 May 2009 02:14:04 +0000 (02:14 +0000)]
usys.S: put before init.c, STUB -> SYSCALL

16 years agoexec sanity check
rsc [Sun, 31 May 2009 02:11:27 +0000 (02:11 +0000)]
exec sanity check

16 years agosimplify
rsc [Sun, 31 May 2009 02:07:51 +0000 (02:07 +0000)]
simplify

16 years agouse ftable like btable and itable
rsc [Sun, 31 May 2009 02:07:26 +0000 (02:07 +0000)]
use ftable like btable and itable

16 years agofix bug fix
rsc [Sun, 31 May 2009 01:53:08 +0000 (01:53 +0000)]
fix bug fix

16 years agotidy fs.c; bmap callers always expected allocation
rsc [Sun, 31 May 2009 01:44:20 +0000 (01:44 +0000)]
tidy fs.c; bmap callers always expected allocation

16 years agoinode reuse bug.
rsc [Sun, 31 May 2009 01:34:46 +0000 (01:34 +0000)]
inode reuse bug.

Suppose an inode has been used and freed.
It is left marked I_VALID (the bug).
Now ialloc comes along and reuses the
inode.  It writes the new inode type to disk
and returns iget(dev, inum) to get the
cache entry.  Iget sees that the inode is valid
and doesn't bother refreshing from disk.
Now when the caller iupdates, it will write
out a zero type and the file or directory has
disappeared.

16 years agobio.c: use struct like icache does
rsc [Sun, 31 May 2009 01:29:17 +0000 (01:29 +0000)]
bio.c: use struct like icache does

16 years agoide.c: make names more regular
rsc [Sun, 31 May 2009 01:29:01 +0000 (01:29 +0000)]
ide.c: make names more regular

16 years agoclean up %fs %gs use
rsc [Sun, 31 May 2009 01:12:08 +0000 (01:12 +0000)]
clean up %fs %gs use

16 years agosync with c; .text is implied
rsc [Sun, 31 May 2009 01:00:38 +0000 (01:00 +0000)]
sync with c; .text is implied

16 years agodrop NADDRS and INDIRECT; too many names
rsc [Sun, 31 May 2009 00:59:37 +0000 (00:59 +0000)]
drop NADDRS and INDIRECT; too many names

16 years agotab police
rsc [Sun, 31 May 2009 00:39:17 +0000 (00:39 +0000)]
tab police

16 years agomove fork into proc.c
rsc [Sun, 31 May 2009 00:38:51 +0000 (00:38 +0000)]
move fork into proc.c

16 years agomissed this file in last checkin
rsc [Sun, 31 May 2009 00:31:20 +0000 (00:31 +0000)]
missed this file in last checkin

16 years agoSome proc cleanup, moving some of copyproc into allocproc.
rsc [Sun, 31 May 2009 00:28:45 +0000 (00:28 +0000)]
Some proc cleanup, moving some of copyproc into allocproc.

Also, an experiment: use "thread-local" storage for c and cp
instead of the #define macro for curproc[cpu()].

16 years agomove T_DIR etc into stat.h; move type up
rsc [Sun, 31 May 2009 00:26:10 +0000 (00:26 +0000)]
move T_DIR etc into stat.h; move type up

16 years agoAdd serial port input/output.
rsc [Sun, 31 May 2009 00:24:11 +0000 (00:24 +0000)]
Add serial port input/output.
Delete parallel port output.
Works well with qemu -nographic mode.

16 years agoslight rearrangement; sleep on b not buf.
rsc [Sun, 31 May 2009 00:23:00 +0000 (00:23 +0000)]
slight rearrangement; sleep on b not buf.

16 years agoAdd MIT license file; update xv6-rev2.tar.gz with LICENSE.
rsc [Tue, 26 May 2009 16:58:33 +0000 (16:58 +0000)]
Add MIT license file; update xv6-rev2.tar.gz with LICENSE.
Other files unchanged.

16 years agobe consistent: no underscores in function names
rsc [Sun, 8 Mar 2009 22:07:13 +0000 (22:07 +0000)]
be consistent: no underscores in function names

16 years agoxv6: boot loader adjustments
rsc [Sun, 8 Mar 2009 21:41:30 +0000 (21:41 +0000)]
xv6: boot loader adjustments

do Bochs breakpoint and spin in bootasm.S.
not needed in bootmain too.
fix readseg bug (rounding of va).
zero segments when memsz > filesz.
no need to clear BSS in kernel main.
make bootother.S like bootasm.S

16 years agoxv6: use stosb for memset
rsc [Sun, 8 Mar 2009 21:38:30 +0000 (21:38 +0000)]
xv6: use stosb for memset

16 years agoxv6/x86.h: add stosb, fix bugs in insl/outsl (rep not repne)
rsc [Sun, 8 Mar 2009 21:27:57 +0000 (21:27 +0000)]
xv6/x86.h: add stosb, fix bugs in insl/outsl (rep not repne)

16 years agoxv6/x86.h: inline assembly cleanup
rsc [Sun, 8 Mar 2009 20:56:38 +0000 (20:56 +0000)]
xv6/x86.h: inline assembly cleanup

17 years agoExplain why itrunc() is OK w.r.t. crashes.
rtm [Mon, 20 Oct 2008 18:05:48 +0000 (18:05 +0000)]
Explain why itrunc() is OK w.r.t. crashes.

17 years agotry harder to get directory refcounts right
kolya [Fri, 17 Oct 2008 12:42:13 +0000 (12:42 +0000)]
try harder to get directory refcounts right

17 years agomake mkdir crash-safer, as noticed by many students on midterm
kolya [Thu, 16 Oct 2008 15:18:49 +0000 (15:18 +0000)]
make mkdir crash-safer, as noticed by many students on midterm

17 years agofree the indirect block
kolya [Thu, 16 Oct 2008 15:00:23 +0000 (15:00 +0000)]
free the indirect block

17 years agoas rtm noticed, avoid doubly-freeing pipe page
kolya [Wed, 15 Oct 2008 17:42:56 +0000 (17:42 +0000)]
as rtm noticed, avoid doubly-freeing pipe page

17 years agoindent
kolya [Wed, 15 Oct 2008 05:15:32 +0000 (05:15 +0000)]
indent

17 years agocleaner swtch.S
kolya [Wed, 15 Oct 2008 05:14:10 +0000 (05:14 +0000)]
cleaner swtch.S

17 years agosave cpus.intena in sched(), so we get the right EFLAGS.IF value once a
kolya [Wed, 15 Oct 2008 05:01:39 +0000 (05:01 +0000)]
save cpus.intena in sched(), so we get the right EFLAGS.IF value once a
timer-preempted kernel thread resumes execution in trap() after yield().
otherwise the kernel could get an arbitrary number of nested timer intrs.

17 years agocheck cp->killed before returning to user from a timer interrupt
kolya [Wed, 15 Oct 2008 04:57:02 +0000 (04:57 +0000)]
check cp->killed before returning to user from a timer interrupt

17 years agoupdate .cvsignore
kolya [Wed, 15 Oct 2008 04:54:24 +0000 (04:54 +0000)]
update .cvsignore

17 years agominor cleanup
kolya [Sun, 12 Oct 2008 20:19:16 +0000 (20:19 +0000)]
minor cleanup