From 8797eb7e2b36d9e8252d761d731400938e26d44a Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 22 Sep 2004 07:32:14 +0000 Subject: [PATCH] Fix assertion. --- src/userprog/pagedir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2