[PATCH] Allow ports to define MMAP2_PAGE_SHIFT dynamically
Maxim Kuvyrkov
maxim@codesourcery.com
Sun Mar 21 15:53:00 GMT 2010
M68K linux port expects the argument of mmap2 syscall to be counted in
the increments of memory pages. This fact, combined with ColdFire
kernels using 8K pages, breaks __map64 on ColdFire.
The following patch makes __map64 handle the situation with ColdFire by
allowing the port to define the MMAP2_PAGE_SHIFT macro to `-1' and then
query getpagesize() for the page size to use.
Whether or not this issue is a kernel bug was argued in
<http://sourceware.org/ml/libc-ports/2009-10/msg00035.html>.
Regards,
--
Maxim Kuvyrkov
CodeSourcery
maxim@codesourcery.com
(650) 331-3385 x724
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Use-getpagesize-where-appropriate.patch
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20100321/83cb961f/attachment.ksh>
More information about the Libc-alpha
mailing list