From e112eacf4daa3fb9d1ea695895bc47ee9d4229ea Mon Sep 17 00:00:00 2001 From: ArchStacker Date: Sun, 10 May 2015 00:37:37 +0800 Subject: [PATCH] Fix the bug in lab7_result:vmm.c --- labcodes_answer/lab7_result/kern/mm/vmm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/labcodes_answer/lab7_result/kern/mm/vmm.c b/labcodes_answer/lab7_result/kern/mm/vmm.c index 04f514d..603d923 100644 --- a/labcodes_answer/lab7_result/kern/mm/vmm.c +++ b/labcodes_answer/lab7_result/kern/mm/vmm.c @@ -536,6 +536,7 @@ do_pgfault(struct mm_struct *mm, uint32_t error_code, uintptr_t addr) { } page_insert(mm->pgdir, page, addr, perm); swap_map_swappable(mm, addr, page, 1); + page->pra_vaddr = addr; } ret = 0; failed: