Xv6 /

Filename Size Date modified Message
130 B
86 B
682 B
118 B
128 B
1.1 KB
7.5 KB
3.9 KB
1.9 KB
3.8 KB
936 B
3.1 KB
2.9 KB
2.2 KB
340 B
513 B
5.1 KB
934 B
5.2 KB
32.7 KB
198 B
755 B
1.6 KB
2.0 KB
2.3 KB
96 B
2.8 KB
735 B
766 B
13.4 KB
1.4 KB
5.6 KB
1.9 KB
3.2 KB
649 B
423 B
2.0 KB
1.8 KB
925 B
3.5 KB
1.5 KB
232 B
5.1 KB
264 B
4.3 KB
1.5 KB
3.5 KB
1.2 KB
812 B
327 B
5.6 KB
8.8 KB
3.4 KB
2.1 KB
614 B
2.3 KB
2.3 KB
581 B
1.4 KB
9.7 KB
2.9 KB
322 B
4.8 KB
597 B
2.5 KB
2.3 KB
8.1 KB
135 B
363 B
1.9 KB
2.5 KB
317 B
240 B
300 B
747 B
1.4 KB
461 B
3.7 KB
3.3 KB
486 B
6.9 KB
1.0 KB
938 B
512 B
290 B
2.5 KB
557 B
1.5 KB
110 B
1.3 KB
1.2 KB
1.6 KB
828 B
31.1 KB
461 B
989 B
9.3 KB
821 B
3.2 KB
215 B
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.


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, 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 made contributions:
    Russ Cox (context switching, locking)
    Cliff Frey (MP)
    Xiao Yu (MP)
    Nickolai Zeldovich
    Austin Clements

In addition, we are grateful for the patches contributed by Greg
Price, Yandong Mao, and Hitoshi Mitake.

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


If you spot errors or have suggestions for improvement, please send
email to Frans Kaashoek and Robert Morris (kaashoek, 


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
Then run "make TOOLPREFIX=i386-jos-elf-".

To run xv6, you can use Bochs or QEMU, both PC simulators.
Bochs makes debugging easier, but QEMU is much faster. 
To run in Bochs, run "make bochs" and then type "c" at the bochs prompt.
To run in QEMU, run "make qemu".

To create a typeset version of the code, run "make xv6.pdf".  This
requires the "mpage" utility.  See
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.