fix /proc/*/pagemap

refs #387
This commit is contained in:
Tomoki Shirasawa
2017-12-25 16:08:51 +09:00
parent cc7be46b7d
commit 0cda763f95
2 changed files with 1 additions and 7 deletions

View File

@ -493,7 +493,7 @@ uint64_t ihk_mc_pt_virt_to_pagemap(struct page_table *pt, unsigned long virt)
error = ihk_mc_pt_virt_to_phys(pt, (void *)virt, &phys);
if (error) {
return 0;
return PM_PSHIFT(PAGE_SHIFT);
}
pagemap = PM_PFRAME(phys >> PAGE_SHIFT);