From: Ben Pfaff Date: Wed, 22 Sep 2004 07:32:14 +0000 (+0000) Subject: Fix assertion. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffea652d0433aa0818046011ae337b55f8dc3582;p=pintos-anon Fix assertion. --- diff --git a/src/userprog/pagedir.c b/src/userprog/pagedir.c index c5c2e5d..7d1018e 100644 --- a/src/userprog/pagedir.c +++ b/src/userprog/pagedir.c @@ -99,7 +99,7 @@ pagedir_set_page (uint32_t *pd, void *upage, void *kpage, ASSERT (pg_ofs (upage) == 0); ASSERT (pg_ofs (kpage) == 0); ASSERT (upage < PHYS_BASE); - ASSERT (lookup_page (pd, upage, false) == NULL); + ASSERT (pagedir_get_page (pd, upage) == NULL); pte = lookup_page (pd, upage, true); if (pte != NULL)