X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fuserprog%2Fpagedir.c;h=820755ff7ce27911fa67e2926409a1e3f9bde507;hb=e82703f6476952b17bf858801134c0cc9c38cab4;hp=5e7fa9293f2850eb16cc876d2b728deaad42c222;hpb=bf38311a1c9b25090e92c3847f32a3dc984dac08;p=pintos-anon diff --git a/src/userprog/pagedir.c b/src/userprog/pagedir.c index 5e7fa92..820755f 100644 --- a/src/userprog/pagedir.c +++ b/src/userprog/pagedir.c @@ -89,7 +89,7 @@ lookup_page (uint32_t *pd, const void *vaddr, bool create) 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() . + 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