Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pintos_forked_resit
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
s2-alsaloumi
Pintos_forked_resit
Commits
6b1ebc36
Commit
6b1ebc36
authored
1 year ago
by
h2-addad
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
ac3bebef
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/userprog/pagedir.h
+18
-0
18 additions, 0 deletions
src/userprog/pagedir.h
with
18 additions
and
0 deletions
src/userprog/pagedir.h
0 → 100644
+
18
−
0
View file @
6b1ebc36
#ifndef USERPROG_PAGEDIR_H
#define USERPROG_PAGEDIR_H
#include
<stdbool.h>
#include
<stdint.h>
uint32_t
*
pagedir_create
(
void
);
void
pagedir_destroy
(
uint32_t
*
pd
);
bool
pagedir_set_page
(
uint32_t
*
pd
,
void
*
upage
,
void
*
kpage
,
bool
rw
);
void
*
pagedir_get_page
(
uint32_t
*
pd
,
const
void
*
upage
);
void
pagedir_clear_page
(
uint32_t
*
pd
,
void
*
upage
);
bool
pagedir_is_dirty
(
uint32_t
*
pd
,
const
void
*
upage
);
void
pagedir_set_dirty
(
uint32_t
*
pd
,
const
void
*
upage
,
bool
dirty
);
bool
pagedir_is_accessed
(
uint32_t
*
pd
,
const
void
*
upage
);
void
pagedir_set_accessed
(
uint32_t
*
pd
,
const
void
*
upage
,
bool
accessed
);
void
pagedir_activate
(
uint32_t
*
pd
);
#endif
/* userprog/pagedir.h */
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