From: js@sig21.net (Johannes Stezenbach)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH/RFC] ARM: CONFIG_MTD_XIP vs. __aeabi_idiv
Date: Thu, 9 Sep 2010 15:14:03 +0200 [thread overview]
Message-ID: <20100909131403.GA28399@sig21.net> (raw)
For testing purposes I needed to build a kernel which
executes in-place in NOR flash. It crashes when probing
physmap flash because the MTD code which runs from RAM with
CONFIG_MTD_XIP calls __aeabi_idiv.
Signed-off-by: Johannes Stezenbach <js@sig21.net>
diff --git a/arch/arm/lib/lib1funcs.S b/arch/arm/lib/lib1funcs.S
index 6dc0648..b2c0105 100644
--- a/arch/arm/lib/lib1funcs.S
+++ b/arch/arm/lib/lib1funcs.S
@@ -204,6 +204,10 @@ Boston, MA 02111-1307, USA. */
5:
.endm
+#ifdef CONFIG_MTD_XIP
+ @ MTD code need to have these functions in RAM
+ .section ".data"
+#endif
ENTRY(__udivsi3)
ENTRY(__aeabi_uidiv)
reply other threads:[~2010-09-09 13:14 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=20100909131403.GA28399@sig21.net \
--to=js@sig21.net \
--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).