From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: always define CONFIG_PHYS_OFFSET on !MMU
Date: Wed, 12 Mar 2014 16:50:20 +0100 [thread overview]
Message-ID: <4902708.0QMcK2ajbq@wuerfel> (raw)
Starting with 006fa2599bf0 "ARM: fix noMMU kallsyms symbol filtering", we
use CONFIG_PHYS_OFFSET to calculate PAGE_OFFSET and have that passed
into kallsyms as the start address.
However, CONFIG_PHYS_OFFSET is defined only for platforms that don't
set NEED_MACH_MEMORY_H. It is possible to build a noMMU kernel for
these platforms by setting CONFIG_DRAM_BASE to the same value as the
PLAT_PHYS_OFFSET. This means we can in fact rely on DRAM_BASE to be
correct already, and implicitly define PHYS_OFFSET to the same value.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 72129f3..67314cb 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -271,7 +271,7 @@ config NEED_MACH_MEMORY_H
config PHYS_OFFSET
hex "Physical address of main memory" if MMU
- depends on !ARM_PATCH_PHYS_VIRT && !NEED_MACH_MEMORY_H
+ depends on (!ARM_PATCH_PHYS_VIRT && !NEED_MACH_MEMORY_H) || !MMU
default DRAM_BASE if !MMU
help
reply other threads:[~2014-03-12 15:50 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=4902708.0QMcK2ajbq@wuerfel \
--to=arnd@arndb.de \
--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