]> hydra-www.ietfng.org Git - xv6-public/log
xv6-public
10 years agoAdd sanity check panic for CRTC interactions
Nathaniel Wesley Filardo [Sat, 7 Nov 2015 05:38:40 +0000 (00:38 -0500)]
Add sanity check panic for CRTC interactions

10 years agoRemove console input.lock
Nathaniel Wesley Filardo [Sat, 7 Nov 2015 05:37:23 +0000 (00:37 -0500)]
Remove console input.lock

Use cons.lock for everything.  This eliminates the possibility that two CPUS
independently, simultaneously manipulate the CRTC in cgaputc.

10 years agoAdd prepanic() function to prepare for panic
Nathaniel Wesley Filardo [Sat, 7 Nov 2015 05:35:25 +0000 (00:35 -0500)]
Add prepanic() function to prepare for panic

10 years agoumalloc: poison frees
Nathaniel Wesley Filardo [Wed, 11 Nov 2015 04:38:27 +0000 (23:38 -0500)]
umalloc: poison frees

10 years agoConvert 12-hour clock to 24-hour time.
Peter H. Froehlich [Thu, 5 Nov 2015 22:52:05 +0000 (17:52 -0500)]
Convert 12-hour clock to 24-hour time.

10 years agoCoding style.
Peter H. Froehlich [Thu, 5 Nov 2015 21:40:29 +0000 (16:40 -0500)]
Coding style.

10 years agoDisentangled CMOS from LAPIC.
Peter H. Froehlich [Thu, 5 Nov 2015 21:02:23 +0000 (16:02 -0500)]
Disentangled CMOS from LAPIC.

10 years agoA few small cosmetic changes
Nathaniel Wesley Filardo [Tue, 27 Oct 2015 00:42:02 +0000 (20:42 -0400)]
A few small cosmetic changes

Comments, fixing a panic() message, and making trap.c a little more debugger
friendly (now possible to breakpoint specifically on a trap-induced exit,
rather than the syscall)

10 years agoMake getcallerpcs size parametric
Nathaniel Wesley Filardo [Sat, 24 Oct 2015 04:34:33 +0000 (00:34 -0400)]
Make getcallerpcs size parametric

10 years ago.SECONDARY make targets for kernel dependencies
Nathaniel Wesley Filardo [Thu, 22 Oct 2015 03:04:44 +0000 (23:04 -0400)]
.SECONDARY make targets for kernel dependencies

This allows us to ship a binary kernel image that won't get clobbered.

10 years agoThe rdtsc(p) instruction.
Peter H. Froehlich [Wed, 21 Oct 2015 22:43:02 +0000 (18:43 -0400)]
The rdtsc(p) instruction.

10 years agoReplace pushcli/popcli because seginit runs too late.
Peter H. Froehlich [Wed, 21 Oct 2015 01:42:18 +0000 (21:42 -0400)]
Replace pushcli/popcli because seginit runs too late.

10 years agoInternal locking now disables interrupts.
Peter H. Froehlich [Tue, 20 Oct 2015 15:54:30 +0000 (11:54 -0400)]
Internal locking now disables interrupts.

10 years agoA second serial port for debugging output.
Peter H. Froehlich [Tue, 20 Oct 2015 15:23:33 +0000 (11:23 -0400)]
A second serial port for debugging output.

10 years agoProper masking, check against maxintr.
Peter H. Froehlich [Mon, 19 Oct 2015 00:00:28 +0000 (20:00 -0400)]
Proper masking, check against maxintr.

10 years agoComment about APIC id versus CPU id confusion.
Peter H. Froehlich [Sun, 18 Oct 2015 23:44:35 +0000 (19:44 -0400)]
Comment about APIC id versus CPU id confusion.

10 years agoDetect first IOAPIC instead of hardcoding it.
Peter H. Froehlich [Sun, 18 Oct 2015 07:10:42 +0000 (03:10 -0400)]
Detect first IOAPIC instead of hardcoding it.

10 years agoModernized array initializer syntax.
Peter H. Froehlich [Sun, 18 Oct 2015 06:54:19 +0000 (02:54 -0400)]
Modernized array initializer syntax.

10 years agoTwo sanity checks that were missing.
Peter H. Froehlich [Sun, 18 Oct 2015 05:16:17 +0000 (01:16 -0400)]
Two sanity checks that were missing.

10 years agoMore sanity checks, slightly improved header.
Peter H. Froehlich [Sun, 18 Oct 2015 04:40:12 +0000 (00:40 -0400)]
More sanity checks, slightly improved header.

10 years agoSmall changes related to memlayout.h primarily.
Peter H. Froehlich [Fri, 16 Oct 2015 21:41:17 +0000 (17:41 -0400)]
Small changes related to memlayout.h primarily.

Resolved v2p/p2v/V2P/P2V duplication, minimized memlayout.h use,
clarified entry.S "indirect jump" confusion, nits.

10 years agoCheck more kalloc()/mappages() failures, nits.
Peter H. Froehlich [Sun, 11 Oct 2015 03:40:05 +0000 (23:40 -0400)]
Check more kalloc()/mappages() failures, nits.

10 years agoToo many CPUs no longer crash.
Peter H. Froehlich [Sat, 3 Oct 2015 21:48:36 +0000 (17:48 -0400)]
Too many CPUs no longer crash.

10 years agoRemoved useless variable.
Peter H. Froehlich [Sat, 3 Oct 2015 08:43:05 +0000 (04:43 -0400)]
Removed useless variable.

10 years agoMake runoff happier about line lengths, nits.
Peter H. Froehlich [Sat, 3 Oct 2015 06:01:07 +0000 (02:01 -0400)]
Make runoff happier about line lengths, nits.

10 years agoAgain, QEMU command line to avoid image warning.
Peter H. Froehlich [Sat, 3 Oct 2015 05:55:43 +0000 (01:55 -0400)]
Again, QEMU command line to avoid image warning.

10 years agoNew uart.h header and adjusted uart.c driver.
Peter H. Froehlich [Sat, 3 Oct 2015 03:00:29 +0000 (23:00 -0400)]
New uart.h header and adjusted uart.c driver.

10 years agoAdd parens to clarify.
Peter H. Froehlich [Mon, 28 Sep 2015 05:00:37 +0000 (01:00 -0400)]
Add parens to clarify.

10 years agoUsing the #defines consistently, nits.
Peter H. Froehlich [Mon, 28 Sep 2015 04:06:08 +0000 (00:06 -0400)]
Using the #defines consistently, nits.

10 years agoNew IDE header, adjusted IDE driver code, nits.
Peter H. Froehlich [Sun, 27 Sep 2015 19:40:21 +0000 (15:40 -0400)]
New IDE header, adjusted IDE driver code, nits.

10 years agoRemove unused variable, nits.
Peter H. Froehlich [Sun, 27 Sep 2015 03:10:25 +0000 (23:10 -0400)]
Remove unused variable, nits.

10 years agoAdd parens to clarify.
Peter H. Froehlich [Sun, 27 Sep 2015 03:09:49 +0000 (23:09 -0400)]
Add parens to clarify.

10 years agoReplaced bzero with memset, nits.
Peter H. Froehlich [Sun, 27 Sep 2015 02:31:36 +0000 (22:31 -0400)]
Replaced bzero with memset, nits.

10 years agoRemoved useless function and prototypes.
Peter H. Froehlich [Sat, 26 Sep 2015 22:47:39 +0000 (18:47 -0400)]
Removed useless function and prototypes.

10 years agoFixed QEMU command line avoids raw image warning.
Peter H. Froehlich [Sat, 26 Sep 2015 21:38:04 +0000 (17:38 -0400)]
Fixed QEMU command line avoids raw image warning.

10 years agoFixed broken build on Arch Linux
Ayan Shafqat [Thu, 13 Aug 2015 02:11:39 +0000 (22:11 -0400)]
Fixed broken build on Arch Linux

10 years agocoding style (per Jeremías Feltan <jeremias.feltan@gmail.com>)
Frans Kaashoek [Tue, 30 Jun 2015 20:23:56 +0000 (16:23 -0400)]
coding style (per Jeremías Feltan <jeremias.feltan@gmail.com>)

10 years agoUpdate memide to reflect recent changes to fs and buf
Frans Kaashoek [Sat, 27 Jun 2015 17:38:03 +0000 (13:38 -0400)]
Update memide to reflect recent changes to fs and buf

10 years agoPick up where i left off in april:
Frans Kaashoek [Sat, 27 Jun 2015 16:39:13 +0000 (12:39 -0400)]
Pick up where i left off in april:
- move log into metadata part of disk, so that marking
that the log's blocks are in use falls out for free
- superblock describes the whole disk (sizes and offets)
- sizes and offsets are computed in one place (mkfs) and
the rest of the code refers to the superblock for these values,
instead of recomputing them.

11 years agoOne ide command for nsector_per_block generates nsector_per_block interrupts,
Frans Kaashoek [Sat, 11 Apr 2015 00:39:40 +0000 (20:39 -0400)]
One ide command for nsector_per_block generates nsector_per_block interrupts,
instead of 1.   ideintr() should wait for nsector_per_block interrupts before
waking up the reader; now it wakes up the reader after 1 interrupt, which
apparently means that the first sector is available of the command instead of all.
For now keep BSIZE to 512.

11 years agocheck blockno passed to idestart
Frans Kaashoek [Fri, 10 Apr 2015 11:15:06 +0000 (07:15 -0400)]
check blockno passed to idestart

11 years agoDisentangle block size from the disk's sector size. Set block size to 1024 to show
Frans Kaashoek [Fri, 3 Apr 2015 12:22:02 +0000 (08:22 -0400)]
Disentangle block size from the disk's sector size.  Set block size to 1024 to show
that they can be different.  Clean up mkfs, simplifying specifying fs parameters,
remove some redundancy between fs and mkfs, and fix disk layout bugs. Call blocks
in the file system blocks instead of sectors.  Passes usertests for different
block sizes.

11 years agoFix missing NUL-terminator in grep
Austin Clements [Wed, 25 Mar 2015 00:54:39 +0000 (20:54 -0400)]
Fix missing NUL-terminator in grep

Currently, grep read()s into a buffer and then uses the buffer as a
string. Since there's no NUL-terminator, this can cause it to falsely
identify line breaks and matches from leftover data on earlier lines
and, if a line fills up the entire buffer, to read past the end of the
buffer.

Fix this by NUL-terminating any data returned by read().

Thanks to Keiichi Watanabe for the report.

11 years agofix buf where concurrent fs syscalls race on log entries
Cody Cutler [Thu, 19 Feb 2015 16:51:47 +0000 (11:51 -0500)]
fix buf where concurrent fs syscalls race on log entries

11 years agoIncrease VM memory when running qemu-memfs
Austin Clements [Fri, 3 Oct 2014 13:44:26 +0000 (09:44 -0400)]
Increase VM memory when running qemu-memfs

Presumably because of the pre-loaded file system, the default RAM is
insufficient when running kernelmemfs

11 years agoMake kernelmemfs depend on kernel.ld
Austin Clements [Fri, 3 Oct 2014 13:43:44 +0000 (09:43 -0400)]
Make kernelmemfs depend on kernel.ld

11 years agoFix kernelmemfs linking
Austin Clements [Fri, 3 Oct 2014 13:39:09 +0000 (09:39 -0400)]
Fix kernelmemfs linking

Commit 9aa0337d introduced a linker script for linking the kernel image,
but only changed the kernel target to use it.  kernelmemfs was still
using the old linker command line arguments, which weren't sufficient.

11 years agoggdb -> gdwarf-2 for gcc4.8
Frans Kaashoek [Tue, 23 Sep 2014 11:39:32 +0000 (07:39 -0400)]
ggdb -> gdwarf-2 for gcc4.8

11 years agowhoops. forgot date.h
Cody Cutler [Fri, 12 Sep 2014 22:41:38 +0000 (18:41 -0400)]
whoops. forgot date.h

11 years agocmosgetdate() for system-call homework
Cody Cutler [Fri, 12 Sep 2014 21:18:57 +0000 (17:18 -0400)]
cmosgetdate() for system-call homework

the day of reckoning has come for the debug port "Shutdown" hack.

instead of mucking with ACPI or using a new hack, the student will now write
sys_date() using the cmosgetdate() helper.

11 years agoOops (thanks David Lawrence)
Frans Kaashoek [Mon, 8 Sep 2014 22:00:53 +0000 (18:00 -0400)]
Oops (thanks David Lawrence)

11 years agono need to generate postscript version
Frans Kaashoek [Fri, 29 Aug 2014 21:10:32 +0000 (17:10 -0400)]
no need to generate postscript version

11 years agoNice layout for a printout of the code
Frans Kaashoek [Fri, 29 Aug 2014 21:06:49 +0000 (17:06 -0400)]
Nice layout for a printout of the code

11 years agoAck all bug reports and patches. Is this all of them?
Frans Kaashoek [Fri, 29 Aug 2014 13:03:29 +0000 (09:03 -0400)]
Ack all bug reports and patches.  Is this all of them?

11 years agoupdate for 2014
Frans Kaashoek [Thu, 28 Aug 2014 21:28:40 +0000 (17:28 -0400)]
update for 2014

11 years agoxx
Robert Morris [Thu, 28 Aug 2014 21:04:47 +0000 (17:04 -0400)]
xx

11 years agoMerge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
Robert Morris [Thu, 28 Aug 2014 20:13:58 +0000 (16:13 -0400)]
Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6

11 years agowrite log blocks from cache only at end of transaction
Robert Morris [Thu, 28 Aug 2014 20:06:12 +0000 (16:06 -0400)]
write log blocks from cache only at end of transaction

11 years agonits
Robert Morris [Thu, 28 Aug 2014 10:27:01 +0000 (06:27 -0400)]
nits

11 years agoi think this is a working concurrent logging scheme
Robert Morris [Thu, 28 Aug 2014 09:57:47 +0000 (05:57 -0400)]
i think this is a working concurrent logging scheme

11 years agoa start at concurrent FS system calls
Robert Morris [Wed, 27 Aug 2014 21:15:30 +0000 (17:15 -0400)]
a start at concurrent FS system calls

11 years agocomments
Robert Morris [Wed, 27 Aug 2014 18:14:52 +0000 (14:14 -0400)]
comments

11 years agoevery iput() and namei() must be inside a transaction
Robert Morris [Mon, 4 Aug 2014 17:06:48 +0000 (13:06 -0400)]
every iput() and namei() must be inside a transaction

11 years agouse acquire/release to force order for pid=np->pid;np->state=RUNNING
Robert Morris [Mon, 4 Aug 2014 10:13:49 +0000 (06:13 -0400)]
use acquire/release to force order for pid=np->pid;np->state=RUNNING
for bug reported by symingz@gmail.com and cs1100254@cse.iitd.ernet.in

11 years agonewer versions of qemu have different binary names (per Joel Nider <joel@nider.org>)
Frans Kaashoek [Thu, 31 Jul 2014 15:08:28 +0000 (11:08 -0400)]
newer versions of qemu have different binary names (per Joel Nider <joel@nider.org>)

13 years agoCorrect a security bug in copyuvm()
Stephen Tu [Mon, 4 Mar 2013 21:16:54 +0000 (16:16 -0500)]
Correct a security bug in copyuvm()

copyuvm() should not allow new copied pages to inherit more
permissions than the original pages.

13 years agoPrevent extra rebuild of fs.img by keeping intermediate object files.
Cam Tenny [Wed, 24 Oct 2012 22:52:40 +0000 (18:52 -0400)]
Prevent extra rebuild of fs.img by keeping intermediate object files.

13 years agoUse static assert instead of _LP64 (thanks Eddie!)
Frans Kaashoek [Tue, 11 Sep 2012 01:58:18 +0000 (21:58 -0400)]
Use static assert instead of _LP64  (thanks Eddie!)

13 years agoRemove -m32 flag from native gcc compiler
Frans Kaashoek [Fri, 7 Sep 2012 21:39:04 +0000 (17:39 -0400)]
Remove -m32 flag from native gcc compiler
But check that mkfs.c is building with LP64

13 years agomake the book happy
Robert Morris [Tue, 28 Aug 2012 18:41:08 +0000 (14:41 -0400)]
make the book happy

13 years agonits
Robert Morris [Tue, 28 Aug 2012 18:11:23 +0000 (14:11 -0400)]
nits

13 years agoMerge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
Robert Morris [Tue, 28 Aug 2012 16:57:13 +0000 (12:57 -0400)]
Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6

13 years agojunk
Robert Morris [Tue, 28 Aug 2012 16:57:05 +0000 (12:57 -0400)]
junk

13 years agoVarious fixes and improvements to printpcs
Austin Clements [Fri, 24 Aug 2012 18:51:52 +0000 (14:51 -0400)]
Various fixes and improvements to printpcs

Search for an addr2line that supports elf32-i386.  Don't print the
path of addr2line as a side-effect of which.  Don't uselessly pipe
"grep '^ '" to addr2line's stdin.  Enable as many pretty-printing and
otherwise helpful options as possible (this makes the output *much*
more pleasant on modern addr2lines).

13 years agoFor the convenience of students
Frans Kaashoek [Thu, 23 Aug 2012 13:35:00 +0000 (09:35 -0400)]
For the convenience of students

13 years agoUse addr2line (or i386-jos-elf-addr2line, if you cross compile)
Frans Kaashoek [Thu, 23 Aug 2012 01:25:19 +0000 (21:25 -0400)]
Use addr2line (or i386-jos-elf-addr2line, if you cross compile)

13 years agoRunoff still complaints these lines are too long, but it is now ok on printout
Frans Kaashoek [Thu, 23 Aug 2012 01:24:13 +0000 (21:24 -0400)]
Runoff still complaints these lines are too long, but it is now ok on printout

13 years agochmod +x
Frans Kaashoek [Thu, 23 Aug 2012 00:54:47 +0000 (20:54 -0400)]
chmod +x

13 years agoDecode getcallerpcs() (thanks to Peter Froehlich)
Frans Kaashoek [Thu, 23 Aug 2012 00:51:29 +0000 (20:51 -0400)]
Decode getcallerpcs() (thanks to Peter Froehlich)

13 years agoRemove left-over from some logging plan making complete syscalls atomic
Frans Kaashoek [Thu, 23 Aug 2012 00:28:58 +0000 (20:28 -0400)]
Remove left-over from some logging plan making complete syscalls atomic
0 is not a system call (thanks to Peter Froehlich)

13 years agoMerge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
Frans Kaashoek [Thu, 23 Aug 2012 00:20:17 +0000 (20:20 -0400)]
Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6

13 years agoRemove unused argument to setupkvm (thanks to Peter Froehlich)
Frans Kaashoek [Thu, 23 Aug 2012 00:19:37 +0000 (20:19 -0400)]
Remove unused argument to setupkvm (thanks to Peter Froehlich)

13 years agoRemove unused argument from lapicinit (thanks to Peter Froehlich)
Frans Kaashoek [Thu, 23 Aug 2012 00:13:43 +0000 (20:13 -0400)]
Remove unused argument from lapicinit (thanks to Peter Froehlich)

13 years agoFix from Peter Froehlich
Frans Kaashoek [Thu, 23 Aug 2012 00:07:04 +0000 (20:07 -0400)]
Fix from Peter Froehlich

14 years agoMake fetchint and fetchstr use proc instead of taking a struct proc
Austin Clements [Sat, 18 Feb 2012 04:20:13 +0000 (23:20 -0500)]
Make fetchint and fetchstr use proc instead of taking a struct proc

Previously, these were inconsistent: they used their struct proc
argument for bounds checking, but always copied the argument from the
current address space (and hence the current process).  Drop the
struct proc argument and always use the current proc.

Suggested by Carmi Merimovich.

14 years agodon't let dirty blocks be evicted from cache!
Robert Morris [Fri, 14 Oct 2011 14:23:23 +0000 (10:23 -0400)]
don't let dirty blocks be evicted from cache!

14 years agomore FS comment clarification
Robert Morris [Tue, 11 Oct 2011 14:11:53 +0000 (10:11 -0400)]
more FS comment clarification

14 years agoclarify some FS comments
Robert Morris [Tue, 11 Oct 2011 10:41:37 +0000 (06:41 -0400)]
clarify some FS comments

14 years agoFix compile error on newer gcc's
Austin Clements [Fri, 30 Sep 2011 19:28:33 +0000 (15:28 -0400)]
Fix compile error on newer gcc's

14 years agoMerge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6
Frans Kaashoek [Tue, 27 Sep 2011 17:00:20 +0000 (13:00 -0400)]
Merge branch 'master' of git+ssh://amsterdam.csail.mit.edu/home/am0/6.828/xv6

14 years agoUpdate stressfs to trigger race now the logging code serializes writes
Frans Kaashoek [Tue, 27 Sep 2011 16:59:47 +0000 (12:59 -0400)]
Update stressfs to trigger race now the logging code serializes writes

14 years agoUse | instead of + for entrypgdir. Linker doesn't get in our way here.
Austin Clements [Wed, 14 Sep 2011 17:47:04 +0000 (13:47 -0400)]
Use | instead of + for entrypgdir.  Linker doesn't get in our way here.

14 years agoeliminate enter_alloc -- use kalloc for everything
Robert Morris [Tue, 13 Sep 2011 17:14:52 +0000 (13:14 -0400)]
eliminate enter_alloc -- use kalloc for everything

14 years agomore regular kmap[] and description
Robert Morris [Tue, 13 Sep 2011 16:28:45 +0000 (12:28 -0400)]
more regular kmap[] and description

14 years agocomment nits
Robert Morris [Mon, 12 Sep 2011 18:27:14 +0000 (14:27 -0400)]
comment nits

14 years agoRemove unused 'state' variable that broke the build in recent gcc's
Austin Clements [Wed, 7 Sep 2011 20:39:27 +0000 (16:39 -0400)]
Remove unused 'state' variable that broke the build in recent gcc's

14 years agoRev 6
Austin Clements [Wed, 7 Sep 2011 16:42:09 +0000 (12:42 -0400)]
Rev 6

14 years agoRemove nice font from master
Austin Clements [Wed, 7 Sep 2011 16:40:02 +0000 (12:40 -0400)]
Remove nice font from master

14 years agoFetch nice font from font branch, if possible
Austin Clements [Wed, 7 Sep 2011 16:38:24 +0000 (12:38 -0400)]
Fetch nice font from font branch, if possible

14 years agoMove xv6 release tars/pdfs in to 6.828 repo
Austin Clements [Wed, 7 Sep 2011 15:57:41 +0000 (11:57 -0400)]
Move xv6 release tars/pdfs in to 6.828 repo