Fix the bug in lab7_result:vmm.c

This commit is contained in:
ArchStacker 2015-05-10 00:37:37 +08:00
parent bded0c9515
commit e112eacf4d

View File

@ -536,6 +536,7 @@ do_pgfault(struct mm_struct *mm, uint32_t error_code, uintptr_t addr) {
} }
page_insert(mm->pgdir, page, addr, perm); page_insert(mm->pgdir, page, addr, perm);
swap_map_swappable(mm, addr, page, 1); swap_map_swappable(mm, addr, page, 1);
page->pra_vaddr = addr;
} }
ret = 0; ret = 0;
failed: failed: