Re: Missing PAGE_MASK macro on PPC arches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2007-06-25 at 15:01 +0100, David Woodhouse 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.
> 
> Anything relying on PAGE_SIZE or PAGE_MASK in <asm/page.h> is broken.
> Userspace should be using getpagesize() instead.

Or if you want to be all POSIX-y, sysconf(_SC_PAGESIZE).  I think
getpagesize is deprecated.

josh

--
Fedora-maintainers mailing list
Fedora-maintainers@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers

--
Fedora-maintainers-readonly mailing list
Fedora-maintainers-readonly@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers-readonly

[Index of Archives]     [Fedora Users]     [Fedora Development]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux