implement System V shared memory for LTP syscalls

This commit is contained in:
NAKAMURA Gou
2015-03-11 11:18:17 +09:00
parent f5d935b703
commit 4698bc40c2
7 changed files with 842 additions and 79 deletions

View File

@@ -454,6 +454,15 @@ static int copy_user_ranges(struct process *proc, struct process *org)
vaddr += PAGE_SIZE;
continue;
}
if (1) {
struct page *page;
page = phys_to_page(pte_get_phys(ptep));
if (page && page_is_in_memobj(page)) {
vaddr += PAGE_SIZE;
continue;
}
}
dkprintf("copy_user_ranges(): 0x%lx PTE found\n", vaddr);