v7-M: Fixing XIP when the kernel is in ROM
Russell King - ARM Linux
linux at arm.linux.org.uk
Tue Nov 3 12:30:44 PST 2015
On Tue, Nov 03, 2015 at 09:09:01PM +0100, Uwe Kleine-König wrote:
> 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.
Why waste memory - we already have a stack allocated in the .data segment
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
More information about the linux-arm-kernel