Fix the unsuitable use of pa2page in lab5

This commit is contained in:
ArchStacker
2015-05-04 19:45:53 +08:00
parent 77d23ca519
commit 2cde1118f4
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);