projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fa60b7
)
Clarify function comment.
author
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 21 Dec 2005 00:58:30 +0000
(
00:58
+0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 21 Dec 2005 00:58:30 +0000
(
00:58
+0000)
Via Ben Sapp <bensapp@stanford.edu>.
src/userprog/pagedir.c
patch
|
blob
|
history
diff --git
a/src/userprog/pagedir.c
b/src/userprog/pagedir.c
index 9b2e3c01af18267dca20dac11df8ecc2f9264c20..5e7fa9293f2850eb16cc876d2b728deaad42c222 100644
(file)
--- a/
src/userprog/pagedir.c
+++ b/
src/userprog/pagedir.c
@@
-88,6
+88,8
@@
lookup_page (uint32_t *pd, const void *vaddr, bool create)
/* Adds a mapping from user virtual page UPAGE to kernel virtual
address KPAGE in page directory PD.
UPAGE must not already be mapped.
+ KPAGE should probably be a page obtained from the user pool
+ with palloc_get_page() .
If WRITABLE is true, the new page is read/write;
otherwise it is read-only.
Returns true if successful, false if memory allocation