Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Krishna Vinnakota
CSEP551
Commits
792d83ca
Commit
792d83ca
authored
12 years ago
by
Robert Morris
Browse files
Options
Downloads
Patches
Plain Diff
nits
parent
c1ee7eb4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README
+8
-8
8 additions, 8 deletions
README
vm.c
+4
-4
4 additions, 4 deletions
vm.c
with
12 additions
and
12 deletions
README
+
8
−
8
View file @
792d83ca
...
...
@@ -6,7 +6,7 @@ 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/20
07
/v6.html, which
2000)). See also http://pdos.csail.mit.edu/6.828/20
12
/v6.html, which
provides pointers to on-line resources for v6.
xv6 borrows code from the following sources:
...
...
@@ -15,7 +15,7 @@ xv6 borrows code from the following sources:
FreeBSD (ioapic.c)
NetBSD (console.c)
The following people made contributions:
The following people
have
made contributions:
Russ Cox (context switching, locking)
Cliff Frey (MP)
Xiao Yu (MP)
...
...
@@ -26,7 +26,7 @@ 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-201
1
Frans Kaashoek, Robert Morris, and Russ Cox.
Copyright 2006-201
2
Frans Kaashoek, Robert Morris, and Russ Cox.
ERROR REPORTS
...
...
@@ -38,13 +38,13 @@ 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/201
1
/tools.html.
binaries. See http://pdos.csail.mit.edu/6.828/201
2
/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".
To run xv6, you can use
the
Bochs or QEMU 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 http://www.mesa.nl/pub/mpage/.
This diff is collapsed.
Click to expand it.
vm.c
+
4
−
4
View file @
792d83ca
...
...
@@ -118,10 +118,10 @@ static struct kmap {
uint
phys_end
;
int
perm
;
}
kmap
[]
=
{
{
(
void
*
)
KERNBASE
,
0
,
EXTMEM
,
PTE_W
},
// I/O space
{
(
void
*
)
KERNLINK
,
V2P
(
KERNLINK
),
V2P
(
data
),
0
},
// kern
el
text+rodata
{
(
void
*
)
data
,
V2P
(
data
),
PHYSTOP
,
PTE_W
},
// kern
el
data+memory
{
(
void
*
)
DEVSPACE
,
DEVSPACE
,
0
,
PTE_W
},
// more devices
{
(
void
*
)
KERNBASE
,
0
,
EXTMEM
,
PTE_W
},
// I/O space
{
(
void
*
)
KERNLINK
,
V2P
(
KERNLINK
),
V2P
(
data
),
0
},
// kern text+rodata
{
(
void
*
)
data
,
V2P
(
data
),
PHYSTOP
,
PTE_W
},
// kern data+memory
{
(
void
*
)
DEVSPACE
,
DEVSPACE
,
0
,
PTE_W
},
// more devices
};
// Set up kernel part of a page table.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment