From: Paul Mundt <lethal@linux-sh.org>
To: Greg Ungerer <gerg@snapgear.com>
Cc: Robin Getz <rgetz@blackfin.uclinux.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH]: linux-2.6.21-uc0 (MMU-less updates)
Date: Mon, 7 May 2007 10:24:18 +0900 [thread overview]
Message-ID: <20070507012418.GB25739@linux-sh.org> (raw)
In-Reply-To: <4639E40D.6030809@snapgear.com>
On Thu, May 03, 2007 at 11:30:53PM +1000, Greg Ungerer wrote:
> Robin Getz wrote:
> >>Its not an architecture problem. It can effect any board that
> >>has RAM mapped at a large numerical addresses (larger than TASK_SIZE).
> >>So it can effect any non-MMU platform.
> >
> >Depending on how TASK_SIZE is defined - it looks like everyone else forces
> >it to end of memory, except 68k[nommu].
> >
> >asm-arm/memory.h:#define TASK_SIZE (CONFIG_DRAM_SIZE)
> >asm-blackfin/processor.h:#define TASK_SIZE (memory_end)
> >asm-frv/mem-layout.h:#define TASK_SIZE __UL(0xFFFFFFFFUL)
> >
> >asm-m68k/processor.h:#define TASK_SIZE (0xF0000000UL)
> >asm-m68k/processor.h:#define TASK_SIZE (0x0E000000)
> >asm-m68k/processor.h:#define TASK_SIZE (0x0E000000UL)
> >asm-m68knommu/processor.h:#define TASK_SIZE (0xF0000000UL)
>
> Probably too:
>
> asm-sh/processor.h:#define TASK_SIZE 0x7c000000UL
>
> which has some parts with MMU.
>
> There have been others out of tree that have it like this to.
>
It would be at 0x80000000UL on SH if it weren't for address space area
limitations. The 0x7c000000 - 0x7fffffff space is used for shadowing P4
registers in the virtual address space (area 7) with the MMU and it's a
reserved area without the MMU, so TASK_SIZE is trimmed right before this.
However, I'm not sure that the patch Greg has in this set is sufficient
for the problem described. do_mmap_pgoff() won't allow a > TASK_SIZE
mapping anyways. In the SH case we certainly have address spaces that
can be given user permissions well above TASK_SIZE, area 7 space is used
as a bit of a hack for some of this in the MMU case..
next prev parent reply other threads:[~2007-05-07 1:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-02 5:23 [PATCH]: linux-2.6.21-uc0 (MMU-less updates) Greg Ungerer
2007-05-02 8:58 ` Robin Getz
2007-05-02 11:32 ` Greg Ungerer
2007-05-03 10:55 ` Robin Getz
2007-05-03 11:03 ` Greg Ungerer
2007-05-03 11:35 ` Robin Getz
2007-05-03 13:30 ` Greg Ungerer
2007-05-04 16:12 ` Robin Getz
2007-05-06 11:44 ` Russell King
2007-05-07 11:59 ` Greg Ungerer
2007-05-07 1:24 ` Paul Mundt [this message]
2007-05-02 9:06 ` Christoph Hellwig
2007-05-02 10:37 ` Greg Ungerer
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=20070507012418.GB25739@linux-sh.org \
--to=lethal@linux-sh.org \
--cc=gerg@snapgear.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rgetz@blackfin.uclinux.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.