Browse Source

Fix the bug in lab5_result:vmm.c

main
ArchStacker 9 years ago
parent
commit
09c22d00a0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      labcodes_answer/lab5_result/kern/mm/vmm.c

+ 1
- 0
labcodes_answer/lab5_result/kern/mm/vmm.c View File

@ -527,6 +527,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:

Loading…
Cancel
Save