Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A small kernel to have fun with.
branch: master

This branch is even with arjunsr:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
apps
bin
xv6lib
LICENSE
Makefile
README
_cat
_echo
_grep
_init
_kill
_ln
_ls
_mkdir
_rm
_sh
_usertests
_wc
_zombie
asm.h
bio.c
bio.d
bio.o
bootasm.S
bootasm.d
bootasm.o
bootblock
bootblock.asm
bootblock.o
bootmain.c
bootmain.d
bootmain.o
bootother
bootother.S
bootother.asm
bootother.d
bootother.o
bootother.out
buf.h
cat.asm
cat.sym
console.c
console.d
console.o
defs.h
dev.h
echo.asm
echo.sym
elf.h
exec.c
exec.d
exec.o
fcntl.h
file.c
file.d
file.h
file.o
fs.c
fs.d
fs.h
fs.img
fs.o
fsvar.h
grep.asm
grep.sym
ide.c
ide.d
ide.o
init.asm
init.sym
initcode
initcode.S
initcode.asm
initcode.d
initcode.o
initcode.out
ioapic.c
ioapic.d
ioapic.o
kalloc.c
kalloc.d
kalloc.o
kbd.c
kbd.d
kbd.h
kbd.o
kernel
kernel.asm
kernel.sym
kill.asm
kill.sym
lapic.c
lapic.d
lapic.o
ln.asm
ln.sym
ls.asm
ls.sym
main.c
main.d
main.o
mkdir.asm
mkdir.sym
mkfs
mkfs.c
mkfs.d
mmu.h
mp.c
mp.d
mp.h
mp.o
param.h
picirq.c
picirq.d
picirq.o
pipe.c
pipe.d
pipe.o
pr.pl
proc.c
proc.d
proc.h
proc.o
rm.asm
rm.sym
runoff
runoff.list
runoff.spec
runoff1
sh.asm
sh.sym
sign.pl
spinlock.c
spinlock.d
spinlock.h
spinlock.o
stat.h
string.c
string.d
string.o
swtch.S
swtch.o
syscall.c
syscall.d
syscall.h
syscall.o
sysfile.c
sysfile.d
sysfile.o
sysproc.c
sysproc.d
sysproc.o
timer.c
timer.d
timer.o
toc.ftr
toc.hdr
trap.c
trap.d
trap.o
trapasm.S
trapasm.o
traps.h
types.h
usertests.asm
usertests.sym
vectors.S
vectors.o
vectors.pl
wc.asm
wc.sym
x86.h
xv6.img
zombie.asm
zombie.sym

README

---------------------------------------------------------------
This is my fork of the xv6 Unix system. I'm considering it as
a base for my Rune userland.

-- crc
---------------------------------------------------------------
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 http://pdos.csail.mit.edu/6.828/2007/v6.html, 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 (bootother.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)

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

ERROR REPORTS

If you spot errors or have suggestions for improvement, please send
email to Frans Kaashoek and Robert Morris (kaashoek,rtm@csail.mit.edu). 

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 http://pdos.csail.mit.edu/6.828/2007/tools.html.
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".  Both log the xv6 screen output to 
standard output.

To create a typeset version of the code, run "make xv6.pdf".
This requires the "mpage" text formatting utility.
See http://www.mesa.nl/pub/mpage/.
Something went wrong with that request. Please try again.