public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
* MIPS: getpagesize, PAGE_SHIFT, and PAGE_SIZE
@ 2010-11-23 20:32 Matt Turner
  2010-11-26 16:45 ` Richard Henderson
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Turner @ 2010-11-23 20:32 UTC (permalink / raw)
  To: libc-ports; +Cc: Maciej W. Rozycki, andrew.pinski

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-27  9:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-23 20:32 MIPS: getpagesize, PAGE_SHIFT, and PAGE_SIZE Matt Turner
2010-11-26 16:45 ` Richard Henderson
2010-11-26 17:20   ` Maciej W. Rozycki
2010-11-27  9:30     ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).