This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Allow ports to define MMAP2_PAGE_SHIFT dynamically


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

Attachment: 0001-Use-getpagesize-where-appropriate.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]