Fix the bug in lab3_result:vmm.c

This commit is contained in:
ArchStacker 2015-05-10 00:36:41 +08:00
parent e378ef4376
commit c10c633062

View File

@ -419,6 +419,7 @@ do_pgfault(struct mm_struct *mm, uint32_t error_code, uintptr_t addr) {
}
page_insert(mm->pgdir, page, addr, perm);
swap_map_swappable(mm, addr, page, 1);
page->pra_vaddr = addr;
}
else {
cprintf("no swap_init_ok but ptep is %x, failed\n",*ptep);