This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
MIPS: getpagesize, PAGE_SHIFT, and PAGE_SIZE
- From: Matt Turner <mattst88 at gmail dot com>
- To: libc-ports at sourceware dot org
- Cc: "Maciej W. Rozycki" <macro at linux-mips dot org>, andrew dot pinski at caviumnetworks dot com
- Date: Tue, 23 Nov 2010 20:24:25 +0000
- Subject: 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