[U-Boot] [PATCH v4 1/2] arm: move C runtime setup code in crt0.S

Sughosh Ganu urwithsughosh at gmail.com
Sun Dec 9 21:33:25 CET 2012


On Tue Nov 27, 2012 at 01:43:25PM +0100, Albert ARIBAUD wrote:
> Move all the C runtime setup code from every start.S
> in arch/arm into arch/arm/lib/crt0.S. This covers
> the code sequence from setting up the initial stack
> to calling into board_init_r().
> 
> Also, rewrite the C runtime setup and make functions
> board_init_*() and relocate_code() behave according to
> normal C semantics (no jumping across the C stack any
> more, etc).
> 
> Some SPL targets had to be touched because they use
> start.S explicitly or for some reason; the relevant
> maintainers and custodians are cc:ed.
> 
> Signed-off-by: Albert ARIBAUD <albert.u.boot at aribaud.net>
> ---

Tested on hawkboard. Spl and u-boot images boot up fine with these
changes.

Tested-by: Sughosh Ganu <urwithsughosh at gmail.com>

-sughosh


More information about the U-Boot mailing list