Hi Daniel,
Daniel Glöckner wrote:
I've been asking about the remap_pfn_range behavior some time ago on
this list but got no reply...
IMHO remap_pfn_range on nommu is broken and does not serve the same
function as on mmu.
For now, I've found a simple workaround by changing remap_pfn_range in
mm/nommu.c from
vma->vm_start = vma->vm_pgoff << PAGE_SHIFT;
to
vma->vm_start += vma->vm_pgoff << PAGE_SHIFT;
This takes care of the wrongly changing vm_start, but I have not tested
it with mmap-ing from a non-zero offset. To be continued...
HTH,
Ithamar Adema
http://www.team-embedded.nl
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev