All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: starvik@axis.com, geert@linux-m68k.org, zippel@linux-m68k.org
Cc: dev-etrax@axis.com, linux-m68k@vger.kernel.org,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Ralf Baechle <ralf@linux-mips.org>
Subject: The sys_mmap2 syscall on m68k, cris, and mips
Date: Thu, 23 Feb 2006 09:22:58 -0800	[thread overview]
Message-ID: <43FDEF72.5050200@zytor.com> (raw)

Hello, sorry for the wide distribution;

I am trying to track down the story on the sys_mmap2 system call. 
Currently, to the best of my knowledge, glibc, µClibc, and klibc 
(haven't looked at newlib recently) all assume that sys_mmap2() is the 
way to map large files on 32-bit architectures, and that the offset 
argument is always shifted over by 12.

As indicated by this post, this is the case on most architectures:

http://marc.theaimsgroup.com/?l=linux-kernel&m=114066586932670&w=2

The odd ones out are m68k, cris, and MIPS.  Ralf Baechle has indicated 
that non-4K-pages are currently experimental on MIPS, and that he would 
be open to changing MIPS to fit the rest of the pattern.  That leaves 
m68k and cris.

Thus, I would like to hear your opinion.  One opinion is to define that 
the shift is fixed, but architecture-specific, and introduce an 
MMAP2_PAGE_SHIFT #define that libraries can pick up.  (That would 
require m68k to change at least on the Sun3 platform, though.  I don't 
think there is a huge installed base there, though.)

	-hpa

                 reply	other threads:[~2006-02-23 17:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43FDEF72.5050200@zytor.com \
    --to=hpa@zytor.com \
    --cc=dev-etrax@axis.com \
    --cc=geert@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@vger.kernel.org \
    --cc=ralf@linux-mips.org \
    --cc=starvik@axis.com \
    --cc=zippel@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.