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

@@ -353,7 +353,7 @@ check_pgfault(void) {
assert(sum == 0);
page_remove(pgdir, ROUNDDOWN(addr, PGSIZE));
free_page(pa2page(pgdir[0]));
free_page(pde2page(pgdir[0]));
pgdir[0] = 0;
mm->pgdir = NULL;