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

17 years agominor cleanup with STUB macro
kolya [Sun, 12 Oct 2008 19:54:11 +0000 (19:54 +0000)]
minor cleanup with STUB macro

17 years agoinclude explicitly initialized globals (int x = 0;) in cross-refs,
kolya [Sun, 12 Oct 2008 18:45:30 +0000 (18:45 +0000)]
include explicitly initialized globals (int x = 0;) in cross-refs,
also thanks to greg price.

17 years agofix: when two names only differed in case, crossrefs only included one of them.
kolya [Sun, 12 Oct 2008 18:33:14 +0000 (18:33 +0000)]
fix: when two names only differed in case, crossrefs only included one of them.
thanks to greg price.

17 years agobe clear what the root i-number is
rtm [Wed, 8 Oct 2008 18:57:13 +0000 (18:57 +0000)]
be clear what the root i-number is

17 years agodocument lock->locked=0 vs xchg(&lock->locked, 0)
rtm [Sun, 28 Sep 2008 10:53:54 +0000 (10:53 +0000)]
document lock->locked=0 vs xchg(&lock->locked, 0)

17 years agotrap 9 does not push ec: fix from Greg Price <price@mit.edu>
kolya [Wed, 24 Sep 2008 18:20:56 +0000 (18:20 +0000)]
trap 9 does not push ec: fix from Greg Price <price@mit.edu>

17 years agoalways save and restore %fs, %gs to ensure old segment entries are never
kolya [Wed, 24 Sep 2008 01:48:31 +0000 (01:48 +0000)]
always save and restore %fs, %gs to ensure old segment entries are never
accessible to user from the hidden CPU segment registers.

17 years agorestore std toolprefix
rtm [Thu, 11 Sep 2008 10:22:01 +0000 (10:22 +0000)]
restore std toolprefix

17 years agoomit *.d from tar file
rtm [Thu, 11 Sep 2008 10:20:40 +0000 (10:20 +0000)]
omit *.d from tar file

17 years agoadd copyright notice
kaashoek [Tue, 9 Sep 2008 11:42:44 +0000 (11:42 +0000)]
add copyright notice

17 years agomake bochsrc work for bochs 2.2.6
kolya [Wed, 3 Sep 2008 14:10:47 +0000 (14:10 +0000)]
make bochsrc work for bochs 2.2.6

17 years agomake pdf, ps, tarball
kolya [Wed, 3 Sep 2008 14:05:52 +0000 (14:05 +0000)]
make pdf, ps, tarball

17 years agonits in index.txt
kaashoek [Wed, 3 Sep 2008 12:29:44 +0000 (12:29 +0000)]
nits in index.txt
add slides for shell, x86 intro, x86 virtual memory  (deleted JOS from slides)

17 years agoDO NOT MAIL: xv6 web pages
rsc [Wed, 3 Sep 2008 04:50:04 +0000 (04:50 +0000)]
DO NOT MAIL: xv6 web pages

17 years agosimplify growproc
rtm [Thu, 28 Aug 2008 17:57:47 +0000 (17:57 +0000)]
simplify growproc

17 years agoavoid a bug w/ exit()
rtm [Thu, 28 Aug 2008 00:53:24 +0000 (00:53 +0000)]
avoid a bug w/ exit()

17 years agothe old explanation of AP startup might have been correct, but
rtm [Thu, 28 Aug 2008 00:52:05 +0000 (00:52 +0000)]
the old explanation of AP startup might have been correct, but
I understand this one.

17 years agoclean up circular buffers, so pipe can queue 512 bytes rather than 511
kolya [Fri, 22 Aug 2008 00:26:22 +0000 (00:26 +0000)]
clean up circular buffers, so pipe can queue 512 bytes rather than 511

17 years agofix obvious printf nits after reading through code
kolya [Thu, 21 Aug 2008 23:24:02 +0000 (23:24 +0000)]
fix obvious printf nits after reading through code

17 years agonow rev2
rsc [Wed, 20 Aug 2008 18:00:35 +0000 (18:00 +0000)]
now rev2

17 years agoadd nice font
rsc [Wed, 20 Aug 2008 18:00:24 +0000 (18:00 +0000)]
add nice font

17 years agoformatting updates
rsc [Wed, 20 Aug 2008 18:00:13 +0000 (18:00 +0000)]
formatting updates

17 years agobochs faster
rsc [Wed, 20 Aug 2008 17:59:29 +0000 (17:59 +0000)]
bochs faster

17 years agoxv6: latest (as of January 2008)
rsc [Wed, 20 Aug 2008 17:46:32 +0000 (17:46 +0000)]
xv6: latest (as of January 2008)

18 years agooops - wrong bit (vic zandy)
rsc [Thu, 20 Dec 2007 18:27:07 +0000 (18:27 +0000)]
oops - wrong bit (vic zandy)

18 years agofork minibug
rsc [Wed, 28 Nov 2007 20:47:22 +0000 (20:47 +0000)]
fork minibug

18 years agoMore complete lapic startup (thanks Silas)
rsc [Wed, 28 Nov 2007 20:47:10 +0000 (20:47 +0000)]
More complete lapic startup (thanks Silas)

18 years agobda[0xE] is a 16-bit segment number,
rsc [Wed, 28 Nov 2007 20:17:04 +0000 (20:17 +0000)]
bda[0xE] is a 16-bit segment number,
not a real address.  So shift 4.

Reported by Silas.

Jim McKie says this code only matters
on ancient EISA MP systems.

18 years agoproc_wait -> wait
rtm [Sat, 20 Oct 2007 18:25:38 +0000 (18:25 +0000)]
proc_wait -> wait

18 years agoModel verifying that wakeup really
rsc [Fri, 12 Oct 2007 04:21:04 +0000 (04:21 +0000)]
Model verifying that wakeup really
can be called after release without
causing deadlock.

18 years agoIncorporate new understanding of/with Intel SMP spec.
rsc [Mon, 1 Oct 2007 20:43:15 +0000 (20:43 +0000)]
Incorporate new understanding of/with Intel SMP spec.

Dropped cmpxchg in favor of xchg, to match lecture notes.

Use xchg to release lock, for future protection and to
keep gcc from acting clever.