Missing PAGE_MASK macro on PPC arches
Dmitry Butskoy
buc at odusz.so-cdu.ru
Mon Jun 25 13:06:17 UTC 2007
Josh Boyer wrote:
> On Mon, 2007-06-25 at 16:24 +0400, Dmitry Butskoy wrote:
>
>> The macro "PAGE_MASK" is normally defined in the "asm/page.h" header,
>> provided by the "kernel-headers" package. This header is auto-generated
>> from the correspond "include/asm-powerpc/page.h", with removing of all
>> "__KERNEL__" ifdefs.
>>
>> Unlike in x86, the "PAGE_MASK" definition in
>> "include/asm-powerpc/page.h" is kernel-private (i.e. sits under the
>> "__KERNEL__" ifdef), hence after the stripping we have an empty
>> "asm/page.h" for ppc and ppc64 arches.
>>
>> Because of this some programs are not compiled properly.
>>
>
> Which programs? Why do they care about the page size?
>
fbtv (Frame Buffer TV) from xawtv package.
> It's likely not a bug. PowerPC can have 4KiB or 64KiB pages, and
> PAGE_MASK is dependent upon the kernel config option being set one way
> or another since it's derived from PAGE_SHIFT.
>
Yep, we just should use getpagesize() for now.
Axel Thimm wrote:
> It also happens on RHEL5/x86_64:
>
>
It seems such programs should be patched to calculate masks from the
getpagesize() returned value.
~buc
More information about the Fedora-maintainers
mailing list