Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254747
b: refs/heads/master
c: 8f3b132
h: refs/heads/master
i:
  254745: a052e6a
  254743: f180f80
v: v3
  • Loading branch information
Bob Liu authored and Linus Torvalds committed Jul 9, 2011
1 parent 45c233d commit f259350
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f607e7fc5fb94d92030c4527287e9c149ddf9e65
refs/heads/master: 8f3b1327aa454bc8283e96bca7669c3c88b83f79
9 changes: 6 additions & 3 deletions trunk/mm/nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1813,10 +1813,13 @@ struct page *follow_page(struct vm_area_struct *vma, unsigned long address,
return NULL;
}

int remap_pfn_range(struct vm_area_struct *vma, unsigned long from,
unsigned long to, unsigned long size, pgprot_t prot)
int remap_pfn_range(struct vm_area_struct *vma, unsigned long addr,
unsigned long pfn, unsigned long size, pgprot_t prot)
{
vma->vm_start = vma->vm_pgoff << PAGE_SHIFT;
if (addr != (pfn << PAGE_SHIFT))
return -EINVAL;

vma->vm_flags |= VM_IO | VM_RESERVED | VM_PFNMAP;
return 0;
}
EXPORT_SYMBOL(remap_pfn_range);
Expand Down

0 comments on commit f259350

Please sign in to comment.