public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2]: arm: Provide lowlevel_init C function wrapper for v7
@ 2012-08-09 16:01 Tom Rini
  2012-08-09 16:01 ` [U-Boot] [PATCH 1/2] omap4/5/am33xx: Make lowlevel_init available to all armv7 platforms Tom Rini
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Tom Rini @ 2012-08-09 16:01 UTC (permalink / raw)
  To: u-boot

Hey all,

As Allen Martin noted, on tegra platforms a bug is exposed when using
certain toolchains that currently calls to lowlevel_init must be calls
to another assembly function as the stack is not explicitly setup /
saved and thus register corruption can occur.  Over in TI-land Aneesh V
wrote a lowlevel_init that sets up the stack and calls s_init which is a
C function that does what lowlevel_init does on other platforms.  The
code is generic to at least v7, so this series moves it to
arch/arm/cpu/armv7.  The initial version of the code made use of
LOW_LEVEL_SRAM_STACK as the stack to be setup.  This define is
essentially another name for CONFIG_SYS_INIT_SP_ADDR without taking
GENERATED_GBL_DATA_SIZE into consideration.  So we switch to that
instead.  Finally, Wolfgang question me as to if the stack really only
needed the alignment that we had been giving it.  To be safe, I grabbed
the alignmnet that we do when setting up the initial stack for real and
placed it into lowlevel_init as well.

Tested on AM335x GP EVM and OMAP4 Pandaboard ES2.

-- 
Tom

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-08-15 18:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-09 16:01 [U-Boot] [PATCH 0/2]: arm: Provide lowlevel_init C function wrapper for v7 Tom Rini
2012-08-09 16:01 ` [U-Boot] [PATCH 1/2] omap4/5/am33xx: Make lowlevel_init available to all armv7 platforms Tom Rini
2012-08-13  6:28   ` R, Sricharan
2012-08-13 14:55     ` Tom Rini
2012-08-15 18:16   ` Allen Martin
2012-08-09 16:01 ` [U-Boot] [PATCH 2/2] armv7: Make lowlevel_init.S's lowlevel_init do ABI compatible stack Tom Rini
2012-08-15 18:16   ` Allen Martin
2012-08-13  7:48 ` [U-Boot] [PATCH 0/2]: arm: Provide lowlevel_init C function wrapper for v7 Stefano Babic
2012-08-13 14:57   ` Tom Rini
2012-08-15 18:14 ` Allen Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox