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]

MIPS: getpagesize, PAGE_SHIFT, and PAGE_SIZE


MIPS' getpagesize.c includes the ia64 implementation. [1] The ia64
implementation is the generic Linux implementation if
__ASSUME_AT_PAGESIZE is defined, and __ASSUME_AT_PAGESIZE looks to me
to be defined for all platforms and kernels post-2.4.0-pre-something
in kernel-features.h.

Can someone explain what having __ASSUME_AT_PAGESIZE defined actually
means? Is it correct that it's defined on MIPS? If so, can't we just
#include the generic Linux implementation instead of ia64, or better
yet, just delete MIPS' getpagesize.c?

Also, PAGE_SHIFT (and by extension PAGE_SIZE) are defined as constants
on MIPS. This is clearly wrong, as MIPS supports multiple pagesizes.
What can we do about this?

Thanks,
Matt

[1] http://sourceware.org/bugzilla/show_bug.cgi?id=1047


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