Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
5ab868fd
Commit
5ab868fd
authored
14 years ago
by
Robert Morris
Browse files
Options
Downloads
Patches
Plain Diff
set only PG and WP in vminit; the rest don't seem to be needed and are confusing
parent
789b508d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
main.c
+1
-1
1 addition, 1 deletion
main.c
user.h
+1
-0
1 addition, 0 deletions
user.h
vm.c
+3
-2
3 additions, 2 deletions
vm.c
with
5 additions
and
3 deletions
main.c
+
1
−
1
View file @
5ab868fd
...
...
@@ -41,7 +41,7 @@ void
mainc
(
void
)
{
cprintf
(
"
\n
cpu%d: starting xv6
\n\n
"
,
cpu
->
id
);
kvmalloc
();
// initialze the kernel page table
kvmalloc
();
// initial
i
ze the kernel page table
pinit
();
// process table
tvinit
();
// trap vectors
binit
();
// buffer cache
...
...
This diff is collapsed.
Click to expand it.
user.h
+
1
−
0
View file @
5ab868fd
...
...
@@ -21,6 +21,7 @@ int dup(int);
int
getpid
();
char
*
sbrk
(
int
);
int
sleep
(
int
);
int
uptime
();
// ulib.c
int
stat
(
char
*
,
struct
stat
*
);
...
...
This diff is collapsed.
Click to expand it.
vm.c
+
3
−
2
View file @
5ab868fd
...
...
@@ -375,8 +375,9 @@ vminit(void)
lcr3
(
PADDR
(
kpgdir
));
cr0
=
rcr0
();
cr0
|=
CR0_PE
|
CR0_PG
|
CR0_AM
|
CR0_WP
|
CR0_NE
|
CR0_TS
|
CR0_EM
|
CR0_MP
;
cr0
&=
~
(
CR0_TS
|
CR0_EM
);
// cr0 |= CR0_PE|CR0_PG|CR0_AM|CR0_WP|CR0_NE|CR0_TS|CR0_EM|CR0_MP;
// cr0 &= ~(CR0_TS|CR0_EM);
cr0
|=
CR0_PG
|
CR0_WP
;
lcr0
(
cr0
);
}
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