Guo Song 2ec2ae7cf0 homework/xv6-syscall 4 months ago
.cvsignore update .cvsignore 10 years ago
.dir-locals.el Setting indent-tabs-mode nil everywhere is dangerous 7 years ago
.gdbinit.tmpl Use the symbol file 9 years ago
.gitignore Sync up clean and gitignore better 7 years ago
BUGS sh 11 years ago
LICENSE x 8 months ago
Makefile homework/xv6-syscall 4 months ago
Notes nit in console interrupts 12 years ago
README Update name Use generic 6.828 url (without year) 8 months ago
TRICKS use acquire/release to force order for pid=np->pid;np->state=RUNNING for bug reported by [email protected] and [email protected] 4 years ago
asm.h Remove unused flags (thanks Wolfgang Keller) 8 months ago
bio.c nothing much 1 year ago
bootasm.S nits 2 years ago
bootmain.c Remove trailing white space with: for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick) 2 years ago
buf.h Move retry loop/sleep/wakeup in bio.c into sleeping locks 2 years ago
cat.c Check result of write (thans to Alexander Kapshuk <[email protected]) 2 years ago
console.c Commit to running on an SMP (perhaps with only 1 core). Remove most code from picirq.c and remove timer.c completely. Update runoff.list. 1 year ago
cuth delete unnecessary #include lines 11 years ago
date.c homework/xv6-syscall 4 months ago
date.h coding style (per Jeremías Feltan <[email protected]>) 3 years ago
defs.h A tiny bit of clean up (e.g., move code searching cpu array from lapic.c into mycpu() in proc.c. 2 years ago
dot-bochsrc make bochsrc work for bochs 2.2.6 10 years ago
echo.c Remove puts in favor of printf. 11 years ago
elf.h fix runoff complaints about pagination and long lines 1 year ago
entry.S even more explicit that entry.S is linked into kernel, unlike bootasm.S. 2 years ago
entryother.S nits 2 years ago
exec.c Read curproc from cpu structure, but be careful because after a schedule event myproc() points to a different thread. 2 years ago
fcntl.h nit 11 years ago
file.c stricter log consumption by write() 1 year ago
file.h fix runoff complaints about pagination and long lines 1 year ago
forktest.c thanks tyfkda 8 months ago
fs.c fix runoff complaints about pagination and long lines 1 year ago
fs.h Fix a few lines that runoff is complaining about that they are too long 2 years ago
gdbutil GDB utilities 9 years ago
grep.c Remove trailing white space with: for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick) 2 years ago
ide.c Commit to running on an SMP (perhaps with only 1 core). Remove most code from picirq.c and remove timer.c completely. Update runoff.list. 1 year ago
init.c group locks into structs they protect. few naming nits. 10 years ago
initcode.S nothing much 2 years ago
ioapic.c Commit to running on an SMP (perhaps with only 1 core). Remove most code from picirq.c and remove timer.c completely. Update runoff.list. 1 year ago
kalloc.c fix runoff complaints about pagination and long lines 1 year ago
kbd.c be consistent: no underscores in function names 10 years ago
kbd.h formatting; split kbd constants into kbd.h 11 years ago
kernel.ld Nuke data.S, since we do have a custom linker script. 7 years ago
kill.c 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. 4 years ago
lapic.c x 8 months ago
ln.c add ln 11 years ago
log.c nothing much 1 year ago
ls.c Remove trailing white space with: for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick) 2 years ago
main.c thanks eyalz800 8 months ago
memide.c Thanks to Jeehoon Kang <[email protected]> 2 years ago
memlayout.h thanks eyalz800 8 months ago
mkdir.c more consistent spacing 11 years ago
mkfs.c Remove trailing white space with: for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick) 2 years ago
mmu.h Delete a patch Adjust typesetting of code 8 months ago
mp.c Commit to running on an SMP (perhaps with only 1 core). Remove most code from picirq.c and remove timer.c completely. Update runoff.list. 1 year ago
mp.h Nice layout for a printout of the code 4 years ago
param.h check blockno passed to idestart 4 years ago
picirq.c Commit to running on an SMP (perhaps with only 1 core). Remove most code from picirq.c and remove timer.c completely. Update runoff.list. 1 year ago
pipe.c Start of an experiment to remove the use of gs for cpu local variables. 2 years ago
pr.pl remove //DOC in the right place 9 years ago
printf.c thanks tyfkda 8 months ago
printpcs Various fixes and improvements to printpcs 6 years ago
proc.c fix runoff complaints about pagination and long lines 1 year ago
proc.h Eliminate code for gs trick to track per-cpu state. We rely on lapiccpunum() to find a per-cpu id with which we locate a cpu's cpu struct. 2 years ago
rm.c more consistent spacing 11 years ago
runoff Delete a patch Adjust typesetting of code 8 months ago
runoff.list thanks mtasm 8 months ago
runoff.spec Nice layout for a printout of the code 4 years ago
runoff1 xv6: formatting, cleanup, rev5 (take 2) 8 years ago
sh.c Remove trailing white space with: for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick) 2 years ago
show1 PDF at http://am.lcs.mit.edu/~rsc/xv6.pdf 11 years ago
sign.pl spacing fixes: no tabs, 2-space indents (for rtm) 12 years ago
sleep1.p Model verifying that wakeup really can be called after release without causing deadlock. 11 years ago
sleeplock.c Because sleeplocks replaced B_BUSY the holding test can be more specific (thanks Mark Morrissey) 8 months ago
sleeplock.h sleeplock files 2 years ago
spinlock.c Allow holding to be called with interrupts enabled (for Mark Morrissey). 8 months ago
spinlock.h Remove trailing white space with: for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick) 2 years ago
spinp Model verifying that wakeup really can be called after release without causing deadlock. 11 years ago
stat.h junk 6 years ago
stressfs.c Remove trailing white space with: for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick) 2 years ago
string.c Remove trailing white space with: for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick) 2 years ago
swtch.S thanks wxdao 8 months ago
syscall.c homework/xv6-syscall 4 months ago
syscall.h homework/xv6-syscall 4 months ago
sysfile.c homework/xv6-syscall 4 months ago
sysproc.c Start of an experiment to remove the use of gs for cpu local variables. 2 years ago
toc.ftr Update index example in TOC footer 7 years ago
toc.hdr nits 11 years ago
trap.c fix runoff complaints about pagination and long lines 1 year ago
trapasm.S Update comment to reflect xv6 doesn't have per-cpu segments anymore 1 year ago
traps.h kill TLB shoot down code 8 years ago
types.h some cleanup 8 years ago
uart.c Commit to running on an SMP (perhaps with only 1 core). Remove most code from picirq.c and remove timer.c completely. Update runoff.list. 1 year ago
ulib.c thanks tyfkda 8 months ago
umalloc.c make new code like old code 8 years ago
user.h homework/xv6-syscall 4 months ago
usertests.c Add mikecat's argp test 2 years ago
usys.S homework/xv6-syscall 4 months ago
vectors.pl sync with c; .text is implied 10 years ago
vm.c thanks mataness 8 months ago
wc.c junk 6 years ago
x86.h Remove trailing white space with: for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick) 2 years ago
zombie.c Remove trailing white space with: for f in *.{h,c}; do sed -i .sed 's/[[:blank:]]*$//' $f; done (Thanks to Nicolás Wolovick) 2 years ago

README

xv6 is a re-implementation of Dennis Ritchie's and Ken Thompson's Unix
Version 6 (v6). xv6 loosely follows the structure and style of v6,
but is implemented for a modern x86-based multiprocessor using ANSI C.

ACKNOWLEDGMENTS

xv6 is inspired by John Lions's Commentary on UNIX 6th Edition (Peer
to Peer Communications; ISBN: 1-57398-013-7; 1st edition (June 14,
2000)). See also https://pdos.csail.mit.edu/6.828/, which
provides pointers to on-line resources for v6.

xv6 borrows code from the following sources:
JOS (asm.h, elf.h, mmu.h, bootasm.S, ide.c, console.c, and others)
Plan 9 (entryother.S, mp.h, mp.c, lapic.c)
FreeBSD (ioapic.c)
NetBSD (console.c)

The following people have made contributions: Russ Cox (context switching,
locking), Cliff Frey (MP), Xiao Yu (MP), Nickolai Zeldovich, and Austin
Clements.

We are also grateful for the bug reports and patches contributed by Silas
Boyd-Wickizer, Anton Burtsev, Cody Cutler, Mike CAT, Tej Chajed, eyalz800,
Nelson Elhage, Saar Ettinger, Alice Ferrazzi, Nathaniel Filardo, Peter
Froehlich, Yakir Goaron,Shivam Handa, Bryan Henry, Jim Huang, Alexander
Kapshuk, Anders Kaseorg, kehao95, Wolfgang Keller, Eddie Kohler, Austin
Liew, Imbar Marinescu, Yandong Mao, Matan Shabtay, Hitoshi Mitake, Carmi
Merimovich, Mark Morrissey, mtasm, Joel Nider, Greg Price, Ayan Shafqat,
Eldar Sehayek, Yongming Shen, Cam Tenny, tyfkda, Rafael Ubal, Warren
Toomey, Stephen Tu, Pablo Ventura, Xi Wang, Keiichi Watanabe, Nicolas
Wolovick, wxdao, Grant Wu, Jindong Zhang, Icenowy Zheng, and Zou Chang Wei.

The code in the files that constitute xv6 is
Copyright 2006-2018 Frans Kaashoek, Robert Morris, and Russ Cox.

ERROR REPORTS

Please send errors and suggestions to Frans Kaashoek and Robert Morris
(kaashoek,[email protected]). The main purpose of xv6 is as a teaching
operating system for MIT's 6.828, so we are more interested in
simplifications and clarifications than new features.

BUILDING AND RUNNING XV6

To build xv6 on an x86 ELF machine (like Linux or FreeBSD), run
"make". On non-x86 or non-ELF machines (like OS X, even on x86), you
will need to install a cross-compiler gcc suite capable of producing
x86 ELF binaries (see https://pdos.csail.mit.edu/6.828/).
Then run "make TOOLPREFIX=i386-jos-elf-". Now install the QEMU PC
simulator and run "make qemu".