From: Ben Pfaff Date: Wed, 21 Dec 2005 00:58:30 +0000 (+0000) Subject: Clarify function comment. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf38311a1c9b25090e92c3847f32a3dc984dac08;p=pintos-anon Clarify function comment. Via Ben Sapp . --- diff --git a/src/userprog/pagedir.c b/src/userprog/pagedir.c index 9b2e3c0..5e7fa92 100644 --- 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