This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports 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]

Re: [PATCH, COMMITTED] [MicroBlaze BZ #15705] Define MMAP2_PAGE_SHIFT


On Wed, 5 Feb 2014, David Holsgrove wrote:

> +/* Microblaze kernel has PAGE_SHIFT set to 12.
> +   Determine the shift dynamically with getpagesize.  */

The comment "has PAGE_SHIFT set to 12" seems inaccurate.  The reason you 
need to determine it dynamically is that the kernel 
(arch/microblaze/include/asm/page.h) may define it to any of 12, 14 or 16, 
depending on configuration options.  If it were constant, you could just 
use a suitable constant value here instead of -1.

-- 
Joseph S. Myers
joseph@codesourcery.com


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