From: David Howells <dhowells@redhat.com>
To: torvalds@osdl.org, akpm@osdl.org, rpjday@crashcourse.ca
Cc: linux-kernel@vger.kernel.org, dhowells@redhat.com
Subject: [PATCH] FRV: Permit the memory to be located elsewhere in NOMMU mode
Date: Mon, 29 Oct 2007 15:20:29 +0000 [thread overview]
Message-ID: <20071029152028.14124.50739.stgit@warthog.procyon.org.uk> (raw)
From: David Howells <dhowells@redhat.com>
Permit the memory to be located somewhere other than address 0xC0000000 in
NOMMU mode. The configuration options are already present, it just requires
wiring up in the linker script.
Note that only a limited set of locations of runtime addresses are available
because of the way the CPU protection registers work.
Signed-off-by: David Howells <dhowells@redhat.com>
---
arch/frv/kernel/vmlinux.lds.S | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/arch/frv/kernel/vmlinux.lds.S b/arch/frv/kernel/vmlinux.lds.S
index 3b71e0c..7dd9996 100644
--- a/arch/frv/kernel/vmlinux.lds.S
+++ b/arch/frv/kernel/vmlinux.lds.S
@@ -13,7 +13,21 @@ ENTRY(_start)
jiffies = jiffies_64 + 4;
-__page_offset = 0xc0000000; /* start of area covered by struct pages */
+/* start of area covered by struct pages */
+#if defined(CONFIG_UCPAGE_OFFSET_20000000)
+__page_offset = 0x20000000;
+#elif defined(CONFIG_UCPAGE_OFFSET_40000000)
+__page_offset = 0x40000000;
+#elif defined(CONFIG_UCPAGE_OFFSET_60000000)
+__page_offset = 0x60000000;
+#elif defined(CONFIG_UCPAGE_OFFSET_80000000)
+__page_offset = 0x80000000;
+#elif defined(CONFIG_UCPAGE_OFFSET_A0000000)
+__page_offset = 0xa0000000;
+#else
+__page_offset = 0xc0000000;
+#endif
+
__kernel_image_start = __page_offset; /* address at which kernel image resides */
SECTIONS
next reply other threads:[~2007-10-29 15:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-29 15:20 David Howells [this message]
2007-10-29 16:28 ` Linus Torvalds
2007-10-29 16:38 ` David Howells
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=20071029152028.14124.50739.stgit@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rpjday@crashcourse.ca \
--cc=torvalds@osdl.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
all inboxes | Powered by JetHome®