From bf38311a1c9b25090e92c3847f32a3dc984dac08 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 21 Dec 2005 00:58:30 +0000 Subject: [PATCH] Clarify function comment. Via Ben Sapp . --- src/userprog/pagedir.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.30.2