diff --git a/ucore/src/kern-ucore/mm/vmm.c b/ucore/src/kern-ucore/mm/vmm.c index c9294f9f..b513cd80 100755 --- a/ucore/src/kern-ucore/mm/vmm.c +++ b/ucore/src/kern-ucore/mm/vmm.c @@ -1025,7 +1025,7 @@ int do_pgfault(struct mm_struct *mm, machine_word_t error_code, uintptr_t addr) } unlock_shmem(vma->shmem); if (ptep_present(sh_ptep)) { - page_insert(mm->pgdir, pa2page(*sh_ptep), addr, + page_insert(mm->pgdir, pte2page(*sh_ptep), addr, perm); } else { #ifdef UCONFIG_SWAP