linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sys_mmap2 on different architectures
@ 2006-02-22 21:45 H. Peter Anvin
  2006-02-22 21:54 ` David S. Miller
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: H. Peter Anvin @ 2006-02-22 21:45 UTC (permalink / raw)
  To: klibc, Linux Kernel Mailing List

I've looked through the code for sys_mmap2 on several architectures, and 
it looks like some architectures plays by the "shift is always 12" rule, 
  e.g. SPARC, and some expect userspace to actually obtain the page 
size, e.g. PowerPC and MIPS.  On some architectures, e.g. x86 and ARM, 
the point is moot since PAGE_SIZE is always 2^12.

a. Is this correct, or have I misunderstood the code?

b. If so, is this right, or is this a bug?  Right now both klibc and 
µClibc consider the latter a bug.

c. Which architectures are affected which way?

	-hpa

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

end of thread, other threads:[~2006-02-23 17:47 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-22 21:45 sys_mmap2 on different architectures H. Peter Anvin
2006-02-22 21:54 ` David S. Miller
2006-02-22 22:00   ` H. Peter Anvin
2006-02-23  0:05   ` H. Peter Anvin
2006-02-23  0:40     ` David S. Miller
2006-02-23  0:41     ` David S. Miller
2006-02-23  0:14 ` Benjamin LaHaise
2006-02-23  0:22   ` H. Peter Anvin
2006-02-23  0:43   ` David S. Miller
2006-02-23  0:59     ` H. Peter Anvin
2006-02-23  1:03       ` David S. Miller
2006-02-23  1:06         ` H. Peter Anvin
2006-02-23 17:39     ` Benjamin LaHaise
2006-02-23 17:47       ` H. Peter Anvin
2006-02-23  2:56 ` Paul Mackerras
2006-02-23  3:35   ` H. Peter Anvin
2006-02-23 17:32     ` Ralf Baechle
2006-02-23 17:43       ` H. Peter Anvin

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 NNTP newsgroup(s).