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?p=pintos-anon;a=commitdiff_plain;h=007964552c968c55f62a289b8d8eb48d1f4945d9 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