From: u.kleine-koenig@pengutronix.de (Uwe Kleine-König)
To: linux-arm-kernel@lists.infradead.org
Subject: v7-M: Fixing XIP when the kernel is in ROM
Date: Tue, 3 Nov 2015 21:09:01 +0100 [thread overview]
Message-ID: <20151103200901.GL4931@pengutronix.de> (raw)
In-Reply-To: <HK2PR06MB0561D4F2B8C36A2A1427EE5A8A2B0@HK2PR06MB0561.apcprd06.prod.outlook.com>
Hello,
On Tue, Nov 03, 2015 at 05:52:53PM +0000, Chris Brandt wrote:
> > So the right fix is to move __v7m_setup_stack to .data I guess.
>
>
> Since my set of patches went nowhere, last week we had a look at doing just that (using a pre-allocated stack in .data instead of hard coding to the top of PLAT_PHYS_OFFSET).
>
> Here's the code we came up with. Seems to work on XIP and non-XIP builds as well as SMP and non-SMP.
>
>
> Maybe you can try this technique to allocate the temporary stack in the data section.
I think for v7-M it's easier. Just move the stack to .data and use it
from there where the linker put it to.
> arch/arm/mm/proc-v7.S | 25 +++++++++++++++++++++++--
I would have expected a patch to v7m in this thread.
You seem to fix a different problem so I suggest you start a new thread
with a subject that gets the attention from people that know about the
v7-[AR] details.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |
next prev parent reply other threads:[~2015-11-03 20:09 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-26 1:27 v7-M: Fixing XIP when the kernel is in ROM Ezequiel Garcia
2015-10-26 8:05 ` Uwe Kleine-König
2015-10-26 13:12 ` Ezequiel Garcia
2015-10-27 15:35 ` Ezequiel Garcia
2015-10-27 16:03 ` Maxime Coquelin
2015-10-27 20:25 ` Maxime Coquelin
2015-10-27 20:33 ` Stefan Agner
2015-10-27 21:33 ` Maxime Coquelin
2015-10-27 21:46 ` Ezequiel Garcia
2015-10-27 21:52 ` Maxime Coquelin
2015-10-27 22:08 ` Ezequiel Garcia
2015-10-28 7:43 ` Uwe Kleine-König
2015-11-03 17:52 ` Chris Brandt
2015-11-03 20:09 ` Uwe Kleine-König [this message]
2015-11-03 20:30 ` Russell King - ARM Linux
2015-10-27 20:21 ` Uwe Kleine-König
2015-10-27 20:57 ` Ezequiel Garcia
2015-10-27 21:20 ` Uwe Kleine-König
2015-10-27 22:40 ` Russell King - ARM Linux
2015-10-28 7:34 ` Uwe Kleine-König
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=20151103200901.GL4931@pengutronix.de \
--to=u.kleine-koenig@pengutronix.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;
as well as URLs for NNTP newsgroup(s).