projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eee2ac3
)
Fix assertion.
author
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 22 Sep 2004 07:32:14 +0000
(07:32 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 22 Sep 2004 07:32:14 +0000
(07:32 +0000)
src/userprog/pagedir.c
patch
|
blob
|
history
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 (
lookup_page (pd, upage, fals
e) == NULL);
+ ASSERT (
pagedir_get_page (pd, upag
e) == NULL);
pte = lookup_page (pd, upage, true);
if (pte != NULL)