arm: move C runtime setup code in crt0.S
authorAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 8 Jan 2013 10:18:02 +0000 (10:18 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 8 Jan 2013 21:14:50 +0000 (22:14 +0100)
commite05e5de7fae5bec79617e113916dac6631251156
treec4d2bedca6e1ec79e30b229d2da6b979276456af
parent7528cf5f016b5b8b8b12b373f6f31a10bf89233d
arm: move C runtime setup code in crt0.S

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@aribaud.net>
21 files changed:
arch/arm/cpu/arm1136/start.S
arch/arm/cpu/arm1176/start.S
arch/arm/cpu/arm720t/start.S
arch/arm/cpu/arm920t/start.S
arch/arm/cpu/arm925t/start.S
arch/arm/cpu/arm926ejs/start.S
arch/arm/cpu/arm946es/start.S
arch/arm/cpu/arm_intcm/start.S
arch/arm/cpu/armv7/start.S
arch/arm/cpu/ixp/start.S
arch/arm/cpu/pxa/start.S
arch/arm/cpu/s3c44b0/start.S
arch/arm/cpu/sa1100/start.S
arch/arm/lib/Makefile
arch/arm/lib/board.c
arch/arm/lib/crt0.S [new file with mode: 0644]
include/common.h
include/configs/socfpga_cyclone5.h
lib/asm-offsets.c
nand_spl/board/freescale/mx31pdk/Makefile
nand_spl/board/karo/tx25/Makefile