Fix the unsuitable use of pa2page in lab6

This commit is contained in:
ArchStacker
2015-05-04 19:51:34 +08:00
parent 89a9eb84d0
commit 7f425b91b1
3 changed files with 8 additions and 8 deletions

View File

@@ -262,7 +262,7 @@ check_swap(void)
}
//free_page(pte2page(*temp_ptep));
free_page(pa2page(pgdir[0]));
free_page(pde2page(pgdir[0]));
pgdir[0] = 0;
mm->pgdir = NULL;
mm_destroy(mm);