projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change bitmap interface, update references.
[pintos-anon]
/
src
/
userprog
/
pagedir.c
diff --git
a/src/userprog/pagedir.c
b/src/userprog/pagedir.c
index c5c2e5dc44690804c84ebb9f436211fb0e909bc3..7d1018eadde49f68711ccfbd69e6060553804352 100644
(file)
--- 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 (pg_ofs (upage) == 0);
ASSERT (pg_ofs (kpage) == 0);
ASSERT (upage < PHYS_BASE);
- ASSERT (
lookup_page (pd, upage, fals
e) == NULL);
+ ASSERT (
pagedir_get_page (pd, upag
e) == NULL);
pte = lookup_page (pd, upage, true);
if (pte != NULL)
pte = lookup_page (pd, upage, true);
if (pte != NULL)