From: catalin.marinas@arm.com (Catalin Marinas)
To: linux-arm-kernel@lists.infradead.org
Subject: disabling MMU of ARMv7-A
Date: Fri, 28 Mar 2014 10:43:49 +0000 [thread overview]
Message-ID: <20140328104349.GG21330@arm.com> (raw)
In-Reply-To: <015e01cf4a55$7f43a950$7dcafbf0$@samsung.com>
On Fri, Mar 28, 2014 at 07:15:28AM +0000, Chanho Park wrote:
> I want to know is there anyone who tried disabling MMU of ARMv7-A likes
> cortex-a9.
> Yes. I know this is a silly question :)
> I turned off CONFIG_MMU option of my exynos4 board and specified
> CONFIG_DRAM_BASE/SIZE and REMAP_VECTORS_TO_RAM.
> The problem is occurred in here there is no way to specify the vector table
> address.
> As I know the cortex-M3/4 has VTOR(Vector table offset register) to specify
> the vector table address.
> However, ARMv7-A/R doesn't have such register. They can only control whether
> use _HIGH_ vector or not.
> In this situation, can I find a way to boot successfully with
> nommu+cortex-a9?
There is no way to set a random vectors address on A9. But even if you
want a !MMU kernel, I would not recommend disabling the MMU entirely
because your memory accesses are strongly ordered (and slow and
unaligned accesses will not work). It's better to create some flat
mapping, possibly before starting the kernel and keep the MMU enabled.
Such mapping would contain a vectors page as well (low or high).
--
Catalin
next prev parent reply other threads:[~2014-03-28 10:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-28 7:15 disabling MMU of ARMv7-A Chanho Park
2014-03-28 7:23 ` Marc C
2014-03-28 7:27 ` Chanho Park
2014-03-28 10:49 ` Catalin Marinas
2014-03-28 10:43 ` Catalin Marinas [this message]
2014-04-07 9:56 ` Dave Martin
2014-04-07 10:33 ` Russell King - ARM Linux
2014-04-07 17:16 ` Dave Martin
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=20140328104349.GG21330@arm.com \
--to=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.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 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).