Fix the bug in lab4_result:vmm.c
This commit is contained in:
parent
c10c633062
commit
1e3bab2bab
@ -420,6 +420,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;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
cprintf("no swap_init_ok but ptep is %x, failed\n",*ptep);
|
cprintf("no swap_init_ok but ptep is %x, failed\n",*ptep);
|
||||||
|
Loading…
Reference in New Issue
Block a user