Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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